Skip to content

Commit 7882179

Browse files
committed
The normal operation of our servers is to have tcpip_sockets enabled,
but occasionally I may need to shut down the server and restart it w/o tcpip sockets. Postmaster has the -i option to turn on tcpip connections, but it wasn't immediately clear how to easily or temporarily turn it off (when it's been enabled in postgresql.conf). In fact, it wasn't clear to me until digging in to postmaster.c that I could pass '-c tcpip_socket=false' or '--tcpip_socket=false'. (And then of course when I looked more closely at the man page I realized I'd missed the proper part of the documentation.) What I'd been looking for is a flag that would have the opposite effect of '-i', and it's conceivable that others will be looking for specific flags to do the opposite of '-F' and '-S'. I was preparing to add options to postmaster until I realized that maybe the solution is just to add some documentation. If you'd rather have 1 character options to accomplish this, I'd be happy to do that-- adding those 9 lines of code is definitely within my ability. :) (Although, the "right" letter to be the opposite of -S isn't clear to me, since -s is already taken.) Ron Snyder.
1 parent dbbd13b commit 7882179

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

doc/src/sgml/ref/postmaster.sgml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.29 2002/04/21 19:02:39 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.30 2002/06/15 19:52:56 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -145,7 +145,13 @@ PostgreSQL documentation
145145
<para>
146146
Disables <function>fsync</function> calls for performance
147147
improvement, at the risk of data corruption in event of a
148-
system crash. Read the detailed documentation before using this!
148+
system crash. This parameter corresponds to setting
149+
fsync=false in postgresql.conf. Read the detailed
150+
documentation before using this!
151+
</para>
152+
<para>
153+
<option>--fsync=true</option> has the opposite effect
154+
of this option.
149155
</para>
150156
</listitem>
151157
</varlistentry>
@@ -169,7 +175,12 @@ PostgreSQL documentation
169175
<para>
170176
Allows clients to connect via TCP/IP (Internet domain)
171177
connections. Without this option, only local Unix domain
172-
socket connections are accepted.
178+
socket connections are accepted. This option corresponds
179+
to setting tcpip_socket=true in postgresql.conf.
180+
</para>
181+
<para>
182+
<option>--tcpip_socket=false</option> has the opposite
183+
effect of this option.
173184
</para>
174185
</listitem>
175186
</varlistentry>
@@ -260,6 +271,10 @@ PostgreSQL documentation
260271
to troubleshoot problems. See below for a better way to start
261272
the <application>postmaster</application> in the background.
262273
</para>
274+
<para>
275+
<option>--silent_mode=false</option> has the opposite effect
276+
of this option.
277+
</para>
263278
</listitem>
264279
</varlistentry>
265280

0 commit comments

Comments
 (0)