aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index a676edd9a97..534e4796611 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.450 2005/06/22 17:45:45 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.451 2005/06/29 22:51:55 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -149,9 +149,6 @@ static int UseNewLine = 0; /* Use EOF as query delimiters */
#endif /* TCOP_DONTUSENEWLINE */
-/* Backend startup time */
-TimestampTz StartTime;
-
/* ----------------------------------------------------------------
* decls for routines only used in this file
* ----------------------------------------------------------------
@@ -2373,9 +2370,6 @@ PostgresMain(int argc, char *argv[], const char *username)
sigjmp_buf local_sigjmp_buf;
volatile bool send_rfq = true;
- AbsoluteTime StartTimeSec; /* integer part */
- int StartTimeUSec; /* microsecond part */
-
#define PendingConfigOption(name,val) \
(guc_names = lappend(guc_names, pstrdup(name)), \
guc_values = lappend(guc_values, pstrdup(val)))
@@ -2966,13 +2960,10 @@ PostgresMain(int argc, char *argv[], const char *username)
pgstat_bestart();
/*
- * Get stand-alone backend startup time
+ * Remember stand-alone backend startup time
*/
if (!IsUnderPostmaster)
- {
- StartTimeSec = GetCurrentAbsoluteTimeUsec(&StartTimeUSec);
- StartTime = AbsoluteTimeUsecToTimestampTz(StartTimeSec, StartTimeUSec);
- }
+ PgStartTime = GetCurrentTimestamp();
/*
* POSTGRES main processing loop begins here