diff options
author | Bruce Momjian <bruce@momjian.us> | 2010-12-24 09:45:15 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2010-12-24 09:45:52 -0500 |
commit | 075354ad1bc0496c30dbd4dafb0f88a4d3e54cbc (patch) | |
tree | b1534a62642ca169ef424f6f8962965e70caea0f /doc/src | |
parent | 4b1742a192a60b9c063fd7e93f5aed7a697bece1 (diff) | |
download | postgresql-075354ad1bc0496c30dbd4dafb0f88a4d3e54cbc.tar.gz postgresql-075354ad1bc0496c30dbd4dafb0f88a4d3e54cbc.zip |
Improve "pg_ctl -w start" server detection by writing the postmaster
port and socket directory into postmaster.pid, and have pg_ctl read from
that file, for use by PQping().
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_ctl-ref.sgml | 51 |
1 files changed, 4 insertions, 47 deletions
diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml index 99f0b8f00bf..28f415da24b 100644 --- a/doc/src/sgml/ref/pg_ctl-ref.sgml +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml @@ -348,21 +348,12 @@ PostgreSQL documentation <para> Wait for the startup or shutdown to complete. Waiting is the default option for shutdowns, but not startups. + When waiting for startup, <command>pg_ctl</command> repeatedly + attempts to connect to the server. When waiting for shutdown, <command>pg_ctl</command> waits for the server to remove its <acronym>PID</acronym> file. - When waiting for startup, <command>pg_ctl</command> repeatedly - attempts to connect to the server via <application>psql</>, and - reports success when this is successful. - <command>pg_ctl</command> will attempt to use the proper port for - <application>psql</>. If the environment variable - <envar>PGPORT</envar> exists, that is used. Otherwise, - <command>pg_ctl</command> will see if a port has been set in the - <filename>postgresql.conf</filename> file. If not, it will use the - default port that <productname>PostgreSQL</productname> was compiled - with (5432 by default). - When waiting, <command>pg_ctl</command> will - return an exit code based on the success of the startup - or shutdown. + <command>pg_ctl</command> returns an exit code based on the + success of the startup or shutdown. </para> </listitem> </varlistentry> @@ -442,28 +433,6 @@ PostgreSQL documentation </listitem> </varlistentry> - <varlistentry> - <term><envar>PGHOST</envar></term> - - <listitem> - <para> - Default host name or Unix-domain socket location for <xref - linkend="app-psql"> (used when waiting for startup). - </para> - </listitem> - </varlistentry> - - <varlistentry> - <term><envar>PGPORT</envar></term> - - <listitem> - <para> - Default port number for <xref linkend="app-psql"> - (used when waiting for startup). - </para> - </listitem> - </varlistentry> - </variablelist> <para> @@ -506,18 +475,6 @@ PostgreSQL documentation </listitem> </varlistentry> - <varlistentry> - <term><filename>postgresql.conf</filename></term> - - <listitem> - <para> - This file, located in the data directory, is parsed to find the - proper port to use with <application>psql</application> - when waiting for startup. - </para> - </listitem> - </varlistentry> - </variablelist> </refsect1> |