mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Rename hostname_lookup to log_hostname.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.153 2002/11/15 01:40:15 momjian Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.154 2002/11/15 01:57:25 momjian Exp $
|
||||
-->
|
||||
|
||||
<Chapter Id="runtime">
|
||||
@ -995,7 +995,7 @@ env PGOPTIONS='-c geqo=off' psql
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>HOSTNAME_LOOKUP</varname> (<type>boolean</type>)</term>
|
||||
<term><varname>LOG_HOSTNAME</varname> (<type>boolean</type>)</term>
|
||||
<listitem>
|
||||
<para>
|
||||
By default, connection logs only show the IP address of the
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.295 2002/11/15 01:40:18 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.296 2002/11/15 01:57:26 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -199,7 +199,7 @@ int PreAuthDelay = 0;
|
||||
int AuthenticationTimeout = 60;
|
||||
int CheckPointTimeout = 300;
|
||||
|
||||
bool HostnameLookup; /* for ps display */
|
||||
bool log_hostname; /* for ps display */
|
||||
bool LogSourcePort;
|
||||
bool Log_connections = false;
|
||||
bool Db_user_namespace = false;
|
||||
@ -2097,7 +2097,7 @@ DoBackend(Port *port)
|
||||
|
||||
remote_host = NULL;
|
||||
|
||||
if (HostnameLookup)
|
||||
if (log_hostname)
|
||||
{
|
||||
struct hostent *host_ent;
|
||||
|
||||
|
@ -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.104 2002/11/15 01:40:19 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.105 2002/11/15 01:57:27 momjian Exp $
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
@ -476,7 +476,7 @@ static struct config_bool
|
||||
#endif
|
||||
|
||||
{
|
||||
{"hostname_lookup", PGC_SIGHUP}, &HostnameLookup,
|
||||
{"log_hostname", PGC_SIGHUP}, &log_hostname,
|
||||
false, NULL, NULL
|
||||
},
|
||||
{
|
||||
|
@ -34,7 +34,6 @@
|
||||
#superuser_reserved_connections = 2
|
||||
|
||||
#port = 5432
|
||||
#hostname_lookup = false
|
||||
|
||||
#unix_socket_directory = ''
|
||||
#unix_socket_group = ''
|
||||
@ -121,6 +120,7 @@
|
||||
#silent_mode = false
|
||||
|
||||
#log_connections = false
|
||||
#log_hostname = false
|
||||
#log_source_port = false
|
||||
#log_pid = false
|
||||
#log_statement = false
|
||||
|
@ -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.52 2002/11/15 01:40:20 momjian Exp $
|
||||
* $Id: tcopprot.h,v 1.53 2002/11/15 01:57:28 momjian Exp $
|
||||
*
|
||||
* OLD COMMENTS
|
||||
* This file was created so that other c files could get the two
|
||||
@ -30,7 +30,7 @@ extern DLLIMPORT sigjmp_buf Warn_restart;
|
||||
extern bool Warn_restart_ready;
|
||||
extern bool InError;
|
||||
extern CommandDest whereToSendOutput;
|
||||
extern bool HostnameLookup;
|
||||
extern bool log_hostname;
|
||||
extern bool LogSourcePort;
|
||||
extern DLLIMPORT char* debug_query_string;
|
||||
|
||||
|
Reference in New Issue
Block a user