diff options
| author | Bruce Momjian <bruce@momjian.us> | 2005-06-14 21:04:42 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2005-06-14 21:04:42 +0000 |
| commit | f5835b4b8d569e4d7814886f9e7b90c36d8a4fb5 (patch) | |
| tree | c84f04d2ca95776f698c10ab700c903bcb87a6c9 /src/include | |
| parent | b5e65c8325ea99da815d2d5a9177aa66961c9dd9 (diff) | |
Add pg_postmaster_start_time() function.
Euler Taveira de Oliveira
Matthias Schmidt
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/pg_proc.h | 6 | ||||
| -rw-r--r-- | src/include/utils/timestamp.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index bc5d8afefaf..c06c4a7d41f 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.366 2005/06/13 02:26:50 tgl Exp $ + * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.367 2005/06/14 21:04:41 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -3651,6 +3651,10 @@ DESCR("convert boolean to int4"); DATA(insert OID = 2559 ( lastval PGNSP PGUID 12 f f t f v 0 20 "" _null_ _null_ _null_ lastval - _null_ )); DESCR("current value from last used sequence"); +/* start time function */ +DATA(insert OID = 2560 ( pg_postmaster_start_time PGNSP PGUID 12 f f t f s 0 1184 "" _null_ _null_ _null_ pgsql_postmaster_start_time - _null_ )); +DESCR("postmaster start time"); + /* * Symbolic values for provolatile column: these indicate whether the result diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h index cfd5e1458c5..782b75ec8df 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.43 2005/05/25 21:40:42 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.44 2005/06/14 21:04:42 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -256,6 +256,10 @@ extern Datum timestamptz_part(PG_FUNCTION_ARGS); extern Datum now(PG_FUNCTION_ARGS); +extern Datum pgsql_postmaster_start_time(PG_FUNCTION_ARGS); + +extern TimestampTz StartTime; + /* Internal routines (not fmgr-callable) */ extern int tm2timestamp(struct pg_tm * tm, fsec_t fsec, int *tzp, Timestamp *dt); |
