1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.39 2000/11/25 20:33:47 tgl Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.40 2000/11/30 23: 20:50 tgl Exp $
3
3
-->
4
4
5
5
<Chapter Id="runtime">
@@ -347,7 +347,7 @@ IpcSemaphoreCreate: semget(key=5440026, num=16, 01600) failed: No space left on
347
347
<para>
348
348
<screen>
349
349
connectDB() -- connect() failed: Connection refused
350
- Is the postmaster running (with -i) at 'server.joe.com' and accepting connections on TCP/IP port ' 5432' ?
350
+ Is the postmaster running (with -i) at 'server.joe.com' and accepting connections on TCP/IP port 5432?
351
351
</screen>
352
352
This is the generic <quote>I couldn't find a server to talk
353
353
to</quote> failure. It looks like the above when TCP/IP
@@ -361,7 +361,7 @@ Is the postmaster running (with -i) at 'server.joe.com' and accepting connection
361
361
Unix-socket communication to a local postmaster:
362
362
<screen>
363
363
connectDB() -- connect() failed: No such file or directory
364
- Is the postmaster running at 'localhost' and accepting connections on Unix socket '5432'?
364
+ Is the postmaster running locally and accepting connections on Unix socket '/tmp/.s.PGSQL. 5432'?
365
365
</screen>
366
366
</para>
367
367
@@ -1082,15 +1082,13 @@ env PGOPTIONS='-c geqo=off' psql
1082
1082
</varlistentry>
1083
1083
1084
1084
<varlistentry>
1085
- <term>UNIXSOCKET (<type>string</type>)</term>
1085
+ <term>UNIX_SOCKET_DIRECTORY (<type>string</type>)</term>
1086
1086
<listitem>
1087
1087
<para>
1088
- Specifies the directory of the Unix domain socket on which the
1088
+ Specifies the directory of the Unix- domain socket on which the
1089
1089
<application>postmaster</application> is to listen for
1090
- connections from client applications. Defaults to the value
1091
- of the <envar>PGUNIXSOCKET</envar> environment variable, or if
1092
- <envar>PGUNIXSOCKET</envar> is not set, then defaults to
1093
- <filename>/tmp</filename>.
1090
+ connections from client applications. The default is normally
1091
+ <filename>/tmp</filename>, but can be changed at build time.
1094
1092
</para>
1095
1093
</listitem>
1096
1094
</varlistentry>
@@ -1151,23 +1149,8 @@ env PGOPTIONS='-c geqo=off' psql
1151
1149
<para>
1152
1150
Specifies the TCP/IP hostname or address on which the
1153
1151
<application>postmaster</application> is to listen for
1154
- connections from client applications. Defaults to the value
1155
- of the <envar>PGHOST</envar> environment variable, or if
1156
- <envar>PGHOST</envar> is not set, it defaults to listening on
1157
- all configured addresses (including localhost).
1158
- </para>
1159
- <para>
1160
- If you use a hostname do not try to run multiple instances of
1161
- <application>postmaster</application> on the same IP address
1162
- but different ports. Doing so will result in them attempting
1163
- (incorrectly) to use the same shared memory segments. Also,
1164
- if you use a hostname, all of the host's IP addresses on which
1165
- <application>postmaster</application> instances are listening
1166
- must be distinct in the two last octets.
1167
- </para>
1168
- <para>
1169
- If you do not use this option, then each instance must listen
1170
- on a different port.
1152
+ connections from client applications. Defaults to
1153
+ listening on all configured addresses (including localhost).
1171
1154
</para>
1172
1155
</listitem>
1173
1156
</varlistentry>
@@ -1220,6 +1203,11 @@ env PGOPTIONS='-c geqo=off' psql
1220
1203
<entry>tcpip_socket = on</entry>
1221
1204
<entry></entry>
1222
1205
</row>
1206
+ <row>
1207
+ <entry>-k <replaceable>x</replaceable></entry>
1208
+ <entry>unix_socket_directory = <replaceable>x</replaceable></entry>
1209
+ <entry></entry>
1210
+ </row>
1223
1211
<row>
1224
1212
<entry>-l</entry>
1225
1213
<entry>ssl = on</entry>
0 commit comments