Rename show_source_port to log_source_port.
authorBruce Momjian
Fri, 15 Nov 2002 01:40:20 +0000 (01:40 +0000)
committerBruce Momjian
Fri, 15 Nov 2002 01:40:20 +0000 (01:40 +0000)
doc/src/sgml/runtime.sgml
src/backend/postmaster/postmaster.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/tcop/tcopprot.h

index 6ec4d72f02acc4361465d361a10670710a9dd338..c571c9a81fdfb615b6153cfc0ba5d1ac6cec4de4 100644 (file)
@@ -1,5 +1,5 @@
 
 
 
@@ -1124,7 +1124,7 @@ env PGOPTIONS='-c geqo=off' psql
      
 
      
-      SHOW_SOURCE_PORT (boolean)
+      LOG_SOURCE_PORT (boolean)
       
        
         Shows the outgoing port number of the connecting host in the
index 69363cd8f76c5fcddc7f0424db390e6108555c75..c8c0642fc21b3e4a8be16190205746d2ed042cdc 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.294 2002/11/14 23:53:27 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.295 2002/11/15 01:40:18 momjian Exp $
  *
  * NOTES
  *
@@ -200,7 +200,7 @@ int         AuthenticationTimeout = 60;
 int            CheckPointTimeout = 300;
 
 bool       HostnameLookup;     /* for ps display */
-bool       ShowPortNumber;
+bool       LogSourcePort;
 bool       Log_connections = false;
 bool       Db_user_namespace = false;
 
@@ -2119,7 +2119,7 @@ DoBackend(Port *port)
            elog(LOG, "connection received: host=%s port=%hu",
                 remote_host, remote_port);
 
-       if (ShowPortNumber)
+       if (LogSourcePort)
        {
            /* modify remote_host for use in ps status */
            int         slen = strlen(remote_host) + 10;
index ce60c0997852d22b1a6ace9ad3d8765a33cfa308..cfd632c3311bd9dd32797fd9ddca467c4a18c91d 100644 (file)
@@ -5,7 +5,7 @@
  * command, configuration file, and command line options.
  * See src/backend/utils/misc/README for more information.
  *
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.103 2002/11/15 01:26:09 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.104 2002/11/15 01:40:19 momjian Exp $
  *
  * Copyright 2000 by PostgreSQL Global Development Group
  * Written by Peter Eisentraut .
@@ -480,7 +480,7 @@ static struct config_bool
        false, NULL, NULL
    },
    {
-       {"show_source_port", PGC_SIGHUP}, &ShowPortNumber,
+       {"log_source_port", PGC_SIGHUP}, &LogSourcePort,
        false, NULL, NULL
    },
 
index feca0810ad2defcee60a7d16bdc805ab71d433e9..9b4fb28c83b889dd7f6fabe14d3d5811544b4d1b 100644 (file)
@@ -35,7 +35,6 @@
 
 #port = 5432 
 #hostname_lookup = false
-#show_source_port = false
 
 #unix_socket_directory = ''
 #unix_socket_group = ''
 #silent_mode = false
 
 #log_connections = false
+#log_source_port = false
 #log_pid = false
 #log_statement = false
 #log_duration = false
index f4ba67b3be0062f5c0d6e9999e9e9b30981bcc20..c02b65c55ceecf2d1c6b794961fbfbbd17c5f590 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: tcopprot.h,v 1.51 2002/10/21 18:57:35 petere Exp $
+ * $Id: tcopprot.h,v 1.52 2002/11/15 01:40:20 momjian Exp $
  *
  * OLD COMMENTS
  *   This file was created so that other c files could get the two
@@ -31,7 +31,7 @@ extern bool Warn_restart_ready;
 extern bool InError;
 extern CommandDest whereToSendOutput;
 extern bool HostnameLookup;
-extern bool ShowPortNumber;
+extern bool LogSourcePort;
 extern DLLIMPORT char* debug_query_string;
 
 #ifndef BOOTSTRAP_INCLUDE