summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/libpq/libpq-be.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h
index a077913a113..3200042dae0 100644
--- a/src/include/libpq/libpq-be.h
+++ b/src/include/libpq/libpq-be.h
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.42 2004/03/09 04:43:07 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.43 2004/03/19 02:23:59 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -50,8 +50,6 @@ typedef struct Port
SockAddr raddr; /* remote addr (client) */
char *remote_host; /* name (or ip addr) of remote host */
char *remote_port; /* text rep of remote port */
- char *commandTag; /* command tag for display in log lines */
- struct timeval session_start; /* for session duration logging */
CAC_state canAcceptConnections; /* postmaster connection status */
/*
@@ -74,6 +72,14 @@ typedef struct Port
char cryptSalt[2]; /* Password salt */
/*
+ * Information that really has no business at all being in struct Port,
+ * but since it gets used by elog.c in the same way as database_name
+ * and other members of this struct, we may as well keep it here.
+ */
+ const char *commandTag; /* current command tag */
+ struct timeval session_start; /* for session duration logging */
+
+ /*
* SSL structures
*/
#ifdef USE_SSL