Skip to content

Commit c948a3f

Browse files
committed
Rename hostname_lookup to log_hostname.
1 parent aead496 commit c948a3f

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.153 2002/11/15 01:40:15 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.154 2002/11/15 01:57:25 momjian Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -995,7 +995,7 @@ env PGOPTIONS='-c geqo=off' psql
995995
</varlistentry>
996996

997997
<varlistentry>
998-
<term><varname>HOSTNAME_LOOKUP</varname> (<type>boolean</type>)</term>
998+
<term><varname>LOG_HOSTNAME</varname> (<type>boolean</type>)</term>
999999
<listitem>
10001000
<para>
10011001
By default, connection logs only show the IP address of 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.295 2002/11/15 01:40:18 momjian Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.296 2002/11/15 01:57:26 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -199,7 +199,7 @@ int PreAuthDelay = 0;
199199
int AuthenticationTimeout = 60;
200200
int CheckPointTimeout = 300;
201201

202-
bool HostnameLookup; /* for ps display */
202+
bool log_hostname; /* for ps display */
203203
bool LogSourcePort;
204204
bool Log_connections = false;
205205
bool Db_user_namespace = false;
@@ -2097,7 +2097,7 @@ DoBackend(Port *port)
20972097

20982098
remote_host = NULL;
20992099

2100-
if (HostnameLookup)
2100+
if (log_hostname)
21012101
{
21022102
struct hostent *host_ent;
21032103

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.104 2002/11/15 01:40:19 momjian Exp $
8+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.105 2002/11/15 01:57:27 momjian Exp $
99
*
1010
* Copyright 2000 by PostgreSQL Global Development Group
1111
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -476,7 +476,7 @@ static struct config_bool
476476
#endif
477477

478478
{
479-
{"hostname_lookup", PGC_SIGHUP}, &HostnameLookup,
479+
{"log_hostname", PGC_SIGHUP}, &log_hostname,
480480
false, NULL, NULL
481481
},
482482
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#superuser_reserved_connections = 2
3535

3636
#port = 5432
37-
#hostname_lookup = false
3837

3938
#unix_socket_directory = ''
4039
#unix_socket_group = ''
@@ -121,6 +120,7 @@
121120
#silent_mode = false
122121

123122
#log_connections = false
123+
#log_hostname = false
124124
#log_source_port = false
125125
#log_pid = false
126126
#log_statement = 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.52 2002/11/15 01:40:20 momjian Exp $
10+
* $Id: tcopprot.h,v 1.53 2002/11/15 01:57:28 momjian Exp $
1111
*
1212
* OLD COMMENTS
1313
* This file was created so that other c files could get the two
@@ -30,7 +30,7 @@ extern DLLIMPORT sigjmp_buf Warn_restart;
3030
extern bool Warn_restart_ready;
3131
extern bool InError;
3232
extern CommandDest whereToSendOutput;
33-
extern bool HostnameLookup;
33+
extern bool log_hostname;
3434
extern bool LogSourcePort;
3535
extern DLLIMPORT char* debug_query_string;
3636

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