1
1
<!--
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 $
3
3
-->
4
4
5
5
<Chapter Id="runtime">
@@ -186,11 +186,7 @@ $ <userinput>postmaster -D /usr/local/pgsql/data >logfile 2>&1 &</
186
186
<para>
187
187
The <command>postmaster</command> also takes a number of other
188
188
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.
194
190
</para>
195
191
196
192
<para>
@@ -333,7 +329,7 @@ FATAL: could not create TCP/IP listen socket
333
329
be a different problem. For example, trying to start a <command>postmaster</command>
334
330
on a reserved port number may draw something like:
335
331
<screen>
336
- $ <userinput>postmaster -i - p 666</userinput>
332
+ $ <userinput>postmaster -p 666</userinput>
337
333
LOG: could not bind IPv4 socket: Permission denied
338
334
HINT: Is another postmaster already running on port 666? If not, wait a few seconds and retry.
339
335
FATAL: could not create TCP/IP listen socket
@@ -570,19 +566,38 @@ SET ENABLE_SEQSCAN TO OFF;
570
566
<title>Connection Settings</title>
571
567
572
568
<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>
576
572
<listitem>
577
573
<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.
582
585
</para>
583
586
</listitem>
584
587
</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
+
586
601
<varlistentry id="guc-max-connections" xreflabel="max_connections">
587
602
<term><varname>max_connections</varname> (<type>integer</type>)</term>
588
603
<listitem>
@@ -628,17 +643,6 @@ SET ENABLE_SEQSCAN TO OFF;
628
643
</listitem>
629
644
</varlistentry>
630
645
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
-
642
646
643
647
<varlistentry id="guc-unix-socket-directory" xreflabel="unix_socket_directory">
644
648
<term><varname>unix_socket_directory</varname> (<type>string</type>)</term>
@@ -648,6 +652,7 @@ SET ENABLE_SEQSCAN TO OFF;
648
652
server is to listen for
649
653
connections from client applications. The default is normally
650
654
<filename>/tmp</filename>, but can be changed at build time.
655
+ This parameter can only be set at server start.
651
656
</para>
652
657
</listitem>
653
658
</varlistentry>
@@ -701,27 +706,15 @@ SET ENABLE_SEQSCAN TO OFF;
701
706
</para>
702
707
</listitem>
703
708
</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>
718
709
719
710
<varlistentry id="guc-rendezvous-name" xreflabel="rendezvous_name">
720
711
<term><varname>rendezvous_name</varname> (<type>string</type>)</term>
721
712
<listitem>
722
713
<para>
723
714
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.
725
718
</para>
726
719
</listitem>
727
720
</varlistentry>
@@ -3009,11 +3002,11 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
3009
3002
</row>
3010
3003
<row>
3011
3004
<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>
3013
3006
</row>
3014
3007
<row>
3015
3008
<entry><option>-i</option></entry>
3016
- <entry><literal>tcpip_socket = on </></entry>
3009
+ <entry><literal>listen_addresses = '*' </></entry>
3017
3010
</row>
3018
3011
<row>
3019
3012
<entry><option>-k <replaceable>x</replaceable></option></entry>
0 commit comments