aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/timestamp.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-05-04 21:13:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-05-04 21:13:36 +0000
commit600da67fbe5e5a96fb08eea115ad58ad4990cfea (patch)
tree213423edd4afd170cccbbb4fd48d79153290750d /src/backend/utils/adt/timestamp.c
parent45173ae24e308061c008f77996f3edbebe0e4dc2 (diff)
downloadpostgresql-600da67fbe5e5a96fb08eea115ad58ad4990cfea.tar.gz
postgresql-600da67fbe5e5a96fb08eea115ad58ad4990cfea.zip
Add pg_conf_load_time() function to report when the Postgres configuration
files were last loaded. George Gensure
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
-rw-r--r--src/backend/utils/adt/timestamp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c
index 8a0f37292dc..25d95b60efb 100644
--- a/src/backend/utils/adt/timestamp.c
+++ b/src/backend/utils/adt/timestamp.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.187 2008/03/25 22:42:44 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.188 2008/05/04 21:13:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -42,6 +42,8 @@
/* Set at postmaster start */
TimestampTz PgStartTime;
+/* Set at configuration reload */
+TimestampTz PgReloadTime;
static TimeOffset time2t(const int hour, const int min, const int sec, const fsec_t fsec);
@@ -1157,11 +1159,17 @@ clock_timestamp(PG_FUNCTION_ARGS)
}
Datum
-pgsql_postmaster_start_time(PG_FUNCTION_ARGS)
+pg_postmaster_start_time(PG_FUNCTION_ARGS)
{
PG_RETURN_TIMESTAMPTZ(PgStartTime);
}
+Datum
+pg_conf_load_time(PG_FUNCTION_ARGS)
+{
+ PG_RETURN_TIMESTAMPTZ(PgReloadTime);
+}
+
/*
* GetCurrentTimestamp -- get the current operating system time
*