mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Replace the virtual_host and tcpip_socket parameters with a unified
listen_addresses parameter, as per recent discussion. The default behavior is now to listen on localhost, which eliminates the need for the -i postmaster switch in many scenarios. Andrew Dunstan
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.191 2004/03/22 03:15:29 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.192 2004/03/23 01:23:48 tgl Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -443,14 +443,6 @@ static struct config_bool ConfigureNamesBool[] =
|
||||
&session_auth_is_superuser,
|
||||
false, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"tcpip_socket", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
|
||||
gettext_noop("Makes the server accept TCP/IP connections."),
|
||||
NULL
|
||||
},
|
||||
&NetServer,
|
||||
false, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"ssl", PGC_POSTMASTER, CONN_AUTH_SECURITY,
|
||||
gettext_noop("Enables SSL connections."),
|
||||
@ -1711,12 +1703,12 @@ static struct config_string ConfigureNamesString[] =
|
||||
},
|
||||
|
||||
{
|
||||
{"virtual_host", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
|
||||
gettext_noop("Sets the host name or IP address to listen to."),
|
||||
{"listen_addresses", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
|
||||
gettext_noop("Sets the host name or IP addresses to listen to."),
|
||||
NULL
|
||||
},
|
||||
&VirtualHost,
|
||||
"", NULL, NULL
|
||||
&ListenAddresses,
|
||||
"localhost", NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user