aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2007-08-02 23:39:45 +0000
committerAndrew Dunstan <andrew@dunslane.net>2007-08-02 23:39:45 +0000
commit63872601e84ec78fd1942d5779fccedd415c929f (patch)
tree5cc3a2c1d444e5775205a6a89e56ae5ccfe009ea /src/backend/tcop/postgres.c
parentb34903453f69b972790ac8edddb3fac948dbea4a (diff)
downloadpostgresql-63872601e84ec78fd1942d5779fccedd415c929f.tar.gz
postgresql-63872601e84ec78fd1942d5779fccedd415c929f.zip
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/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 58f1613975d..b5ecea2d064 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.536 2007/07/09 01:15:14 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.537 2007/08/02 23:39:44 adunstan Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -2786,6 +2786,8 @@ PostgresMain(int argc, char *argv[], const char *username)
*/
MyProcPid = getpid();
+ MyStartTime = time(NULL);
+
/*
* Fire up essential subsystems: error and memory management
*