11<!--
2- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.251 2004/03/15 17:57:51 momjian Exp $
2+ $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.252 2004/03/23 01:23:48 tgl Exp $
33-->
44
55<Chapter Id="runtime">
@@ -186,11 +186,7 @@ $ <userinput>postmaster -D /usr/local/pgsql/data >logfile 2>&1 &</
186186 <para>
187187 The <command>postmaster</command> also takes a number of other
188188 command line options. For more information, see the reference page
189- and <xref linkend="runtime-config"> below. In particular, in order
190- for the server to accept
191- TCP/IP<indexterm><primary>TCP/IP</primary></indexterm> connections
192- (rather than just Unix-domain socket ones), you must specify the
193- <option>-i</option> option.
189+ and <xref linkend="runtime-config"> below.
194190 </para>
195191
196192 <para>
@@ -333,7 +329,7 @@ FATAL: could not create TCP/IP listen socket
333329 be a different problem. For example, trying to start a <command>postmaster</command>
334330 on a reserved port number may draw something like:
335331<screen>
336- $ <userinput>postmaster -i - p 666</userinput>
332+ $ <userinput>postmaster -p 666</userinput>
337333LOG: could not bind IPv4 socket: Permission denied
338334HINT: Is another postmaster already running on port 666? If not, wait a few seconds and retry.
339335FATAL: could not create TCP/IP listen socket
@@ -570,19 +566,38 @@ SET ENABLE_SEQSCAN TO OFF;
570566 <title>Connection Settings</title>
571567
572568 <variablelist>
573-
574- <varlistentry id="guc-tcpip-socket " xreflabel="tcpip_socket ">
575- <term><varname>tcpip_socket </varname> (<type>boolean </type>)</term>
569+
570+ <varlistentry id="guc-listen-addresses " xreflabel="listen_addresses ">
571+ <term><varname>listen_addresses </varname> (<type>string </type>)</term>
576572 <listitem>
577573 <para>
578- If this is true, then the server will accept TCP/IP connections.<indexterm><primary>TCP/IP</></>
579- Otherwise only local Unix domain socket connections are
580- accepted. It is off by default. This option can only be set at
581- server start.
574+ Specifies the TCP/IP address(es) on which the server is
575+ to listen for connections from client applications.
576+ The value takes the form of a space-separated list of host names
577+ and/or numeric IP addresses. The special entry <literal>*</>
578+ corresponds to all available IP interfaces.
579+ If the list is empty, the server does not listen on any IP interface
580+ at all, in which case only Unix-domain sockets can be used to connect
581+ to it.
582+ The default value is <systemitem class="systemname">localhost</>,
583+ which allows only local <quote>loopback</> connections to be made.
584+ This parameter can only be set at server start.
582585 </para>
583586 </listitem>
584587 </varlistentry>
585-
588+
589+ <varlistentry id="guc-port" xreflabel="port">
590+ <term><varname>port</varname> (<type>integer</type>)</term>
591+ <indexterm><primary>port</></>
592+ <listitem>
593+ <para>
594+ The TCP port the server listens on; 5432 by default. Note that the
595+ same port number is used for all IP addresses the server listens on.
596+ This parameter can only be set at server start.
597+ </para>
598+ </listitem>
599+ </varlistentry>
600+
586601 <varlistentry id="guc-max-connections" xreflabel="max_connections">
587602 <term><varname>max_connections</varname> (<type>integer</type>)</term>
588603 <listitem>
@@ -628,17 +643,6 @@ SET ENABLE_SEQSCAN TO OFF;
628643 </listitem>
629644 </varlistentry>
630645
631- <varlistentry id="guc-port" xreflabel="port">
632- <term><varname>port</varname> (<type>integer</type>)</term>
633- <indexterm><primary>port</></>
634- <listitem>
635- <para>
636- The TCP port the server listens on; 5432 by default. This
637- option can only be set at server start.
638- </para>
639- </listitem>
640- </varlistentry>
641-
642646
643647 <varlistentry id="guc-unix-socket-directory" xreflabel="unix_socket_directory">
644648 <term><varname>unix_socket_directory</varname> (<type>string</type>)</term>
@@ -648,6 +652,7 @@ SET ENABLE_SEQSCAN TO OFF;
648652 server is to listen for
649653 connections from client applications. The default is normally
650654 <filename>/tmp</filename>, but can be changed at build time.
655+ This parameter can only be set at server start.
651656 </para>
652657 </listitem>
653658 </varlistentry>
@@ -701,27 +706,15 @@ SET ENABLE_SEQSCAN TO OFF;
701706 </para>
702707 </listitem>
703708 </varlistentry>
704-
705- <varlistentry id="guc-virtual-host" xreflabel="virtual_host">
706- <term><varname>virtual_host</varname> (<type>string</type>)</term>
707- <listitem>
708- <para>
709- Specifies the IP address(es) on which the server is
710- to listen for connections from client applications. If specified,
711- it takes the form of a space-separated list of host names and/or
712- numeric IP addresses. If the list is empty, the server listens
713- on all available addresses (including
714- <systemitem class="systemname">localhost</>).
715- </para>
716- </listitem>
717- </varlistentry>
718709
719710 <varlistentry id="guc-rendezvous-name" xreflabel="rendezvous_name">
720711 <term><varname>rendezvous_name</varname> (<type>string</type>)</term>
721712 <listitem>
722713 <para>
723714 Specifies the Rendezvous broadcast name. By default, the
724- computer name is used, specified as ''.
715+ computer name is used, specified as an empty string ''.
716+ This option is only meaningful on platforms that support Rendezvous.
717+ This option can only be set at server start.
725718 </para>
726719 </listitem>
727720 </varlistentry>
@@ -3009,11 +3002,11 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
30093002 </row>
30103003 <row>
30113004 <entry><option>-h <replaceable>x</replaceable></option></entry>
3012- <entry><literal>virtual_host = <replaceable>x</replaceable></></entry>
3005+ <entry><literal>listen_addresses = <replaceable>x</replaceable></></entry>
30133006 </row>
30143007 <row>
30153008 <entry><option>-i</option></entry>
3016- <entry><literal>tcpip_socket =on </></entry>
3009+ <entry><literal>listen_addresses ='*' </></entry>
30173010 </row>
30183011 <row>
30193012 <entry><option>-k <replaceable>x</replaceable></option></entry>