Commit aead4966 authored by Bruce Momjian's avatar Bruce Momjian

Rename show_source_port to log_source_port.

parent 559b6c7c
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.152 2002/11/15 00:47:22 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.153 2002/11/15 01:40:15 momjian Exp $
--> -->
<Chapter Id="runtime"> <Chapter Id="runtime">
...@@ -1124,7 +1124,7 @@ env PGOPTIONS='-c geqo=off' psql ...@@ -1124,7 +1124,7 @@ env PGOPTIONS='-c geqo=off' psql
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>SHOW_SOURCE_PORT</varname> (<type>boolean</type>)</term> <term><varname>LOG_SOURCE_PORT</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
Shows the outgoing port number of the connecting host in the Shows the outgoing port number of the connecting host in the
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* *
...@@ -200,7 +200,7 @@ int AuthenticationTimeout = 60; ...@@ -200,7 +200,7 @@ int AuthenticationTimeout = 60;
int CheckPointTimeout = 300; int CheckPointTimeout = 300;
bool HostnameLookup; /* for ps display */ bool HostnameLookup; /* for ps display */
bool ShowPortNumber; bool LogSourcePort;
bool Log_connections = false; bool Log_connections = false;
bool Db_user_namespace = false; bool Db_user_namespace = false;
...@@ -2119,7 +2119,7 @@ DoBackend(Port *port) ...@@ -2119,7 +2119,7 @@ DoBackend(Port *port)
elog(LOG, "connection received: host=%s port=%hu", elog(LOG, "connection received: host=%s port=%hu",
remote_host, remote_port); remote_host, remote_port);
if (ShowPortNumber) if (LogSourcePort)
{ {
/* modify remote_host for use in ps status */ /* modify remote_host for use in ps status */
int slen = strlen(remote_host) + 10; int slen = strlen(remote_host) + 10;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* command, configuration file, and command line options. * command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information. * 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 * Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
...@@ -480,7 +480,7 @@ static struct config_bool ...@@ -480,7 +480,7 @@ static struct config_bool
false, NULL, NULL false, NULL, NULL
}, },
{ {
{"show_source_port", PGC_SIGHUP}, &ShowPortNumber, {"log_source_port", PGC_SIGHUP}, &LogSourcePort,
false, NULL, NULL false, NULL, NULL
}, },
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#port = 5432 #port = 5432
#hostname_lookup = false #hostname_lookup = false
#show_source_port = false
#unix_socket_directory = '' #unix_socket_directory = ''
#unix_socket_group = '' #unix_socket_group = ''
...@@ -122,6 +121,7 @@ ...@@ -122,6 +121,7 @@
#silent_mode = false #silent_mode = false
#log_connections = false #log_connections = false
#log_source_port = false
#log_pid = false #log_pid = false
#log_statement = false #log_statement = false
#log_duration = false #log_duration = false
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * 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 * OLD COMMENTS
* This file was created so that other c files could get the two * This file was created so that other c files could get the two
...@@ -31,7 +31,7 @@ extern bool Warn_restart_ready; ...@@ -31,7 +31,7 @@ extern bool Warn_restart_ready;
extern bool InError; extern bool InError;
extern CommandDest whereToSendOutput; extern CommandDest whereToSendOutput;
extern bool HostnameLookup; extern bool HostnameLookup;
extern bool ShowPortNumber; extern bool LogSourcePort;
extern DLLIMPORT char* debug_query_string; extern DLLIMPORT char* debug_query_string;
#ifndef BOOTSTRAP_INCLUDE #ifndef BOOTSTRAP_INCLUDE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment