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/backend/utils/adt/pgstatfuncs.c | |
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/backend/utils/adt/pgstatfuncs.c')
-rw-r--r-- | src/backend/utils/adt/pgstatfuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c index 6fab06dae59..55951cf71b9 100644 --- a/src/backend/utils/adt/pgstatfuncs.c +++ b/src/backend/utils/adt/pgstatfuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/pgstatfuncs.c,v 1.43 2007/06/28 00:02:39 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/pgstatfuncs.c,v 1.44 2007/09/11 03:28:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -45,7 +45,7 @@ extern Datum pg_stat_get_backend_userid(PG_FUNCTION_ARGS); extern Datum pg_stat_get_backend_activity(PG_FUNCTION_ARGS); extern Datum pg_stat_get_backend_waiting(PG_FUNCTION_ARGS); extern Datum pg_stat_get_backend_activity_start(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_txn_start(PG_FUNCTION_ARGS); +extern Datum pg_stat_get_backend_xact_start(PG_FUNCTION_ARGS); extern Datum pg_stat_get_backend_start(PG_FUNCTION_ARGS); extern Datum pg_stat_get_backend_client_addr(PG_FUNCTION_ARGS); extern Datum pg_stat_get_backend_client_port(PG_FUNCTION_ARGS); @@ -464,7 +464,7 @@ pg_stat_get_backend_activity_start(PG_FUNCTION_ARGS) Datum -pg_stat_get_backend_txn_start(PG_FUNCTION_ARGS) +pg_stat_get_backend_xact_start(PG_FUNCTION_ARGS) { int32 beid = PG_GETARG_INT32(0); TimestampTz result; @@ -476,7 +476,7 @@ pg_stat_get_backend_txn_start(PG_FUNCTION_ARGS) if (!superuser() && beentry->st_userid != GetUserId()) PG_RETURN_NULL(); - result = beentry->st_txn_start_timestamp; + result = beentry->st_xact_start_timestamp; if (result == 0) /* not in a transaction */ PG_RETURN_NULL(); |