diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-06-08 20:51:25 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-06-08 20:51:25 +0300 |
commit | 1bcdd66315fa1239793134e8284afc272f5975c3 (patch) | |
tree | 59fe307ead00bd3dc172bd20d59eb5d8dfe8bfd7 /doc/src | |
parent | b7e8feb33e5d948c66720643fe32cfb06980c3d1 (diff) | |
download | postgresql-1bcdd66315fa1239793134e8284afc272f5975c3.tar.gz postgresql-1bcdd66315fa1239793134e8284afc272f5975c3.zip |
Reorder pg_ctl promote after pg_ctl status
Since start/stop/restart/reload/status is a kind of standard command
set, it seems odd to insert the special-purpose "promote" in between
the closely related "restart" and "reload". So put it after "status"
in code and documentation.
Put the documentation of the -U option in some sensible place.
Rewrite the synopsis sentence in help and documentation to make it
less of a growing mouthful.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_ctl-ref.sgml | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml index 36d7200cb4c..ba2646c4c44 100644 --- a/doc/src/sgml/ref/pg_ctl-ref.sgml +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml @@ -12,7 +12,7 @@ PostgreSQL documentation <refnamediv> <refname>pg_ctl</refname> - <refpurpose>initialize, start, stop, or restart a <productname>PostgreSQL</productname> server</refpurpose> + <refpurpose>initialize, start, stop, or control a <productname>PostgreSQL</productname> server</refpurpose> </refnamediv> <indexterm zone="app-pg-ctl"> @@ -77,21 +77,21 @@ PostgreSQL documentation <cmdsynopsis> <command>pg_ctl</command> - <arg choice="plain">promote</arg> + <arg choice="plain">reload</arg> <arg>-s</arg> <arg>-D <replaceable>datadir</replaceable></arg> </cmdsynopsis> <cmdsynopsis> <command>pg_ctl</command> - <arg choice="plain">reload</arg> - <arg>-s</arg> + <arg choice="plain">status</arg> <arg>-D <replaceable>datadir</replaceable></arg> </cmdsynopsis> <cmdsynopsis> <command>pg_ctl</command> - <arg choice="plain">status</arg> + <arg choice="plain">promote</arg> + <arg>-s</arg> <arg>-D <replaceable>datadir</replaceable></arg> </cmdsynopsis> @@ -191,12 +191,6 @@ PostgreSQL documentation </para> <para> - In <option>promote</option> mode, the standby server that is - running in the specified data directory is commanded to exit - recovery and begin read-write operations. - </para> - - <para> <option>reload</option> mode simply sends the <command>postgres</command> process a <systemitem>SIGHUP</> signal, causing it to reread its configuration files @@ -214,6 +208,12 @@ PostgreSQL documentation </para> <para> + In <option>promote</option> mode, the standby server that is + running in the specified data directory is commanded to exit + recovery and begin read-write operations. + </para> + + <para> <option>kill</option> mode allows you to send a signal to a specified process. This is particularly valuable for <productname>Microsoft Windows</> which does not have a <application>kill</> command. Use @@ -397,16 +397,6 @@ PostgreSQL documentation </varlistentry> <varlistentry> - <term><option>-U <replaceable class="parameter">username</replaceable></option></term> - <listitem> - <para> - User name for the user to start the service. For domain users, use the - format <literal>DOMAIN\username</literal>. - </para> - </listitem> - </varlistentry> - - <varlistentry> <term><option>-P <replaceable class="parameter">password</replaceable></option></term> <listitem> <para> @@ -426,6 +416,16 @@ PostgreSQL documentation </para> </listitem> </varlistentry> + + <varlistentry> + <term><option>-U <replaceable class="parameter">username</replaceable></option></term> + <listitem> + <para> + User name for the user to start the service. For domain users, use the + format <literal>DOMAIN\username</literal>. + </para> + </listitem> + </varlistentry> </variablelist> </refsect2> |