mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +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
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@@ -27,17 +27,17 @@
|
||||
|
||||
# - Connection Settings -
|
||||
|
||||
#tcpip_socket = false
|
||||
#listen_addresses = 'localhost' # what IP interface(s) to listen on;
|
||||
# defaults to localhost, '*' = any
|
||||
#port = 5432
|
||||
#max_connections = 100
|
||||
# note: increasing max_connections costs about 500 bytes of shared
|
||||
# memory per connection slot, in addition to costs from shared_buffers
|
||||
# and max_locks_per_transaction.
|
||||
#superuser_reserved_connections = 2
|
||||
#port = 5432
|
||||
#unix_socket_directory = ''
|
||||
#unix_socket_group = ''
|
||||
#unix_socket_permissions = 0777 # octal
|
||||
#virtual_host = '' # what interface to listen on; defaults to any
|
||||
#rendezvous_name = '' # defaults to the computer name
|
||||
|
||||
# - Security & Authentication -
|
||||
|
||||
Reference in New Issue
Block a user