1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Add pg_postmaster_start_time() function.

Euler Taveira de Oliveira
Matthias Schmidt
This commit is contained in:
Bruce Momjian
2005-06-14 21:04:42 +00:00
parent b5e65c8325
commit f5835b4b8d
6 changed files with 65 additions and 6 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.124 2005/05/26 02:04:13 neilc Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.125 2005/06/14 21:04:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -938,6 +938,12 @@ now(PG_FUNCTION_ARGS)
PG_RETURN_TIMESTAMPTZ(result);
}
Datum
pgsql_postmaster_start_time(PG_FUNCTION_ARGS)
{
PG_RETURN_TIMESTAMPTZ(StartTime);
}
void
dt2time(Timestamp jd, int *hour, int *min, int *sec, fsec_t *fsec)
{