Skip to content

Commit aead496

Browse files
committed
Rename show_source_port to log_source_port.
1 parent 559b6c7 commit aead496

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.152 2002/11/15 00:47:22 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.153 2002/11/15 01:40:15 momjian Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -1124,7 +1124,7 @@ env PGOPTIONS='-c geqo=off' psql
11241124
</varlistentry>
11251125

11261126
<varlistentry>
1127-
<term><varname>SHOW_SOURCE_PORT</varname> (<type>boolean</type>)</term>
1127+
<term><varname>LOG_SOURCE_PORT</varname> (<type>boolean</type>)</term>
11281128
<listitem>
11291129
<para>
11301130
Shows the outgoing port number of the connecting host in the

src/backend/postmaster/postmaster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.294 2002/11/14 23:53:27 momjian Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.295 2002/11/15 01:40:18 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -200,7 +200,7 @@ int AuthenticationTimeout = 60;
200200
int CheckPointTimeout = 300;
201201

202202
bool HostnameLookup; /* for ps display */
203-
bool ShowPortNumber;
203+
bool LogSourcePort;
204204
bool Log_connections = false;
205205
bool Db_user_namespace = false;
206206

@@ -2119,7 +2119,7 @@ DoBackend(Port *port)
21192119
elog(LOG, "connection received: host=%s port=%hu",
21202120
remote_host, remote_port);
21212121

2122-
if (ShowPortNumber)
2122+
if (LogSourcePort)
21232123
{
21242124
/* modify remote_host for use in ps status */
21252125
int slen = strlen(remote_host) + 10;

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* command, configuration file, and command line options.
66
* See src/backend/utils/misc/README for more information.
77
*
8-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.103 2002/11/15 01:26:09 momjian Exp $
8+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.104 2002/11/15 01:40:19 momjian Exp $
99
*
1010
* Copyright 2000 by PostgreSQL Global Development Group
1111
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -480,7 +480,7 @@ static struct config_bool
480480
false, NULL, NULL
481481
},
482482
{
483-
{"show_source_port", PGC_SIGHUP}, &ShowPortNumber,
483+
{"log_source_port", PGC_SIGHUP}, &LogSourcePort,
484484
false, NULL, NULL
485485
},
486486

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
#port = 5432
3737
#hostname_lookup = false
38-
#show_source_port = false
3938

4039
#unix_socket_directory = ''
4140
#unix_socket_group = ''
@@ -122,6 +121,7 @@
122121
#silent_mode = false
123122

124123
#log_connections = false
124+
#log_source_port = false
125125
#log_pid = false
126126
#log_statement = false
127127
#log_duration = false

src/include/tcop/tcopprot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: tcopprot.h,v 1.51 2002/10/21 18:57:35 petere Exp $
10+
* $Id: tcopprot.h,v 1.52 2002/11/15 01:40:20 momjian Exp $
1111
*
1212
* OLD COMMENTS
1313
* This file was created so that other c files could get the two
@@ -31,7 +31,7 @@ extern bool Warn_restart_ready;
3131
extern bool InError;
3232
extern CommandDest whereToSendOutput;
3333
extern bool HostnameLookup;
34-
extern bool ShowPortNumber;
34+
extern bool LogSourcePort;
3535
extern DLLIMPORT char* debug_query_string;
3636

3737
#ifndef BOOTSTRAP_INCLUDE

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy