diff options
Diffstat (limited to 'src/backend/postmaster/pgstat.c')
-rw-r--r-- | src/backend/postmaster/pgstat.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 9b1ee702e74..0d59d2e3463 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.162 2007/08/02 23:39:44 adunstan Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.163 2007/09/11 03:28:05 tgl Exp $ * ---------- */ #include "postgres.h" @@ -1854,7 +1854,7 @@ pgstat_bestart(void) beentry->st_procpid = MyProcPid; beentry->st_proc_start_timestamp = proc_start_timestamp; beentry->st_activity_start_timestamp = 0; - beentry->st_txn_start_timestamp = 0; + beentry->st_xact_start_timestamp = 0; beentry->st_databaseid = MyDatabaseId; beentry->st_userid = userid; beentry->st_clientaddr = clientaddr; @@ -1939,12 +1939,11 @@ pgstat_report_activity(const char *cmd_str) } /* - * Set the current transaction start timestamp to the specified - * value. If there is no current active transaction, this is signified - * by 0. + * Report current transaction start timestamp as the specified value. + * Zero means there is no active transaction. */ void -pgstat_report_txn_timestamp(TimestampTz tstamp) +pgstat_report_xact_timestamp(TimestampTz tstamp) { volatile PgBackendStatus *beentry = MyBEEntry; @@ -1957,7 +1956,7 @@ pgstat_report_txn_timestamp(TimestampTz tstamp) * here to ensure the compiler doesn't try to get cute. */ beentry->st_changecount++; - beentry->st_txn_start_timestamp = tstamp; + beentry->st_xact_start_timestamp = tstamp; beentry->st_changecount++; Assert((beentry->st_changecount & 1) == 0); } |