diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2007-08-02 23:39:45 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2007-08-02 23:39:45 +0000 |
commit | 63872601e84ec78fd1942d5779fccedd415c929f (patch) | |
tree | 5cc3a2c1d444e5775205a6a89e56ae5ccfe009ea /src/backend/bootstrap/bootstrap.c | |
parent | b34903453f69b972790ac8edddb3fac948dbea4a (diff) |
Move session_start out of MyProcPort stucture and make it a global called MyStartTime,
so that we will be able to create a cookie for all processes for CSVlogs.
It is set wherever MyProcPid is set. Take the opportunity to remove the now
unnecessary session-only restriction on the %s and %c escapes in log_line_prefix.
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 3ffff2a2cce..c1420856375 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.235 2007/07/24 04:54:09 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.236 2007/08/02 23:39:44 adunstan Exp $ * *------------------------------------------------------------------------- */ @@ -213,6 +213,8 @@ AuxiliaryProcessMain(int argc, char *argv[]) */ MyProcPid = getpid(); + MyStartTime = time(NULL); + /* * Fire up essential subsystems: error and memory management * |