From: Bruce Momjian Date: Sat, 15 Jun 2002 19:52:56 +0000 (+0000) Subject: The normal operation of our servers is to have tcpip_sockets enabled, X-Git-Tag: REL7_3~1372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78821799949dc0c96ff2c9071902cddb0e7a7e5a;p=postgresql 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. --- diff --git a/doc/src/sgml/ref/postmaster.sgml b/doc/src/sgml/ref/postmaster.sgml index 0c2149e63b..0d2a7e93dd 100644 --- a/doc/src/sgml/ref/postmaster.sgml +++ b/doc/src/sgml/ref/postmaster.sgml @@ -1,5 +1,5 @@ @@ -145,7 +145,13 @@ PostgreSQL documentation Disables fsync calls for performance improvement, at the risk of data corruption in event of a - system crash. Read the detailed documentation before using this! + system crash. This parameter corresponds to setting + fsync=false in postgresql.conf. Read the detailed + documentation before using this! + + + has the opposite effect + of this option. @@ -169,7 +175,12 @@ PostgreSQL documentation Allows clients to connect via TCP/IP (Internet domain) connections. Without this option, only local Unix domain - socket connections are accepted. + socket connections are accepted. This option corresponds + to setting tcpip_socket=true in postgresql.conf. + + + has the opposite + effect of this option. @@ -260,6 +271,10 @@ PostgreSQL documentation to troubleshoot problems. See below for a better way to start the postmaster in the background. + + has the opposite effect + of this option. +