diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-11 03:28:05 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-11 03:28:05 +0000 |
commit | ef4d38c86c1b1f834bd70115fd19f03431573c2d (patch) | |
tree | 9ceb35a346148e1d3162abefcdabf2eb9b96dde9 /src/include | |
parent | 82a47982f37077a9bfe67c0e9cc87b4f9b16e34b (diff) | |
download | postgresql-ef4d38c86c1b1f834bd70115fd19f03431573c2d.tar.gz postgresql-ef4d38c86c1b1f834bd70115fd19f03431573c2d.zip |
Rename recently-added pg_stat_activity column from txn_start to xact_start,
for consistency with other column names such as in pg_stat_database.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/catversion.h | 4 | ||||
-rw-r--r-- | src/include/catalog/pg_proc.h | 4 | ||||
-rw-r--r-- | src/include/pgstat.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index dcd9c90ecbb..d2301179b6a 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -37,7 +37,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.423 2007/09/05 18:10:48 tgl Exp $ + * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.424 2007/09/11 03:28:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 200709042 +#define CATALOG_VERSION_NO 200709101 #endif diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 2cce837645a..8ee98cb4df6 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.468 2007/09/04 16:41:42 adunstan Exp $ + * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.469 2007/09/11 03:28:05 tgl Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -2899,7 +2899,7 @@ DATA(insert OID = 2853 ( pg_stat_get_backend_waiting PGNSP PGUID 12 1 0 f f t f DESCR("statistics: is backend currently waiting for a lock"); DATA(insert OID = 2094 ( pg_stat_get_backend_activity_start PGNSP PGUID 12 1 0 f f t f s 1 1184 "23" _null_ _null_ _null_ pg_stat_get_backend_activity_start - _null_ _null_ )); DESCR("statistics: start time for current query of backend"); -DATA(insert OID = 2857 ( pg_stat_get_backend_txn_start PGNSP PGUID 12 1 0 f f t f s 1 1184 "23" _null_ _null_ _null_ pg_stat_get_backend_txn_start - _null_ _null_ )); +DATA(insert OID = 2857 ( pg_stat_get_backend_xact_start PGNSP PGUID 12 1 0 f f t f s 1 1184 "23" _null_ _null_ _null_ pg_stat_get_backend_xact_start - _null_ _null_ )); DESCR("statistics: start time for backend's current transaction"); DATA(insert OID = 1391 ( pg_stat_get_backend_start PGNSP PGUID 12 1 0 f f t f s 1 1184 "23" _null_ _null_ _null_ pg_stat_get_backend_start - _null_ _null_ )); DESCR("statistics: start time for current backend session"); diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 960daac5000..93f08cd2fbf 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -5,7 +5,7 @@ * * Copyright (c) 2001-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.64 2007/07/08 22:23:16 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.65 2007/09/11 03:28:05 tgl Exp $ * ---------- */ #ifndef PGSTAT_H @@ -430,7 +430,7 @@ typedef struct PgBackendStatus /* Times when current backend, transaction, and activity started */ TimestampTz st_proc_start_timestamp; - TimestampTz st_txn_start_timestamp; + TimestampTz st_xact_start_timestamp; TimestampTz st_activity_start_timestamp; /* Database OID, owning user's OID, connection client address */ @@ -501,7 +501,7 @@ extern void pgstat_initialize(void); extern void pgstat_bestart(void); extern void pgstat_report_activity(const char *what); -extern void pgstat_report_txn_timestamp(TimestampTz tstamp); +extern void pgstat_report_xact_timestamp(TimestampTz tstamp); extern void pgstat_report_waiting(bool waiting); extern void pgstat_initstats(Relation rel); |