aboutsummaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
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/include/miscadmin.h
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/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index c276742277a..200c8df0d40 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.195 2007/07/25 12:22:53 mha Exp $
+ * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.196 2007/08/02 23:39:44 adunstan Exp $
*
* NOTES
* some of the information in this file should be moved to other files.
@@ -23,6 +23,8 @@
#ifndef MISCADMIN_H
#define MISCADMIN_H
+#include <time.h> /* for time_t */
+
#define PG_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n"
@@ -132,6 +134,7 @@ extern int MaxBackends;
extern int MaxConnections;
extern PGDLLIMPORT int MyProcPid;
+extern PGDLLIMPORT time_t MyStartTime;
extern PGDLLIMPORT struct Port *MyProcPort;
extern long MyCancelKey;