Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc948a3f

Browse files
committed
Rename hostname_lookup to log_hostname.
1 parentaead496 commitc948a3f

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 @@ intPreAuthDelay = 0;
199199
intAuthenticationTimeout=60;
200200
intCheckPointTimeout=300;
201201

202-
boolHostnameLookup;/* for ps display */
202+
boollog_hostname;/* for ps display */
203203
boolLogSourcePort;
204204
boolLog_connections= false;
205205
boolDb_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
structhostent*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
externboolWarn_restart_ready;
3131
externboolInError;
3232
externCommandDestwhereToSendOutput;
33-
externboolHostnameLookup;
33+
externboollog_hostname;
3434
externboolLogSourcePort;
3535
externDLLIMPORTchar*debug_query_string;
3636

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp