mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add -D option to specify data directory to pg_controldata and pg_resetxlog.
It was confusing that to other commands, like initdb and postgres, you would pass the data directory with "-D datadir", but pg_controldata and pg_resetxlog would take just plain path, without the "-D". With this patch, pg_controldata and pg_resetxlog also accept "-D datadir". Abhijit Menon-Sen, with minor kibitzing by me
This commit is contained in:
@ -23,7 +23,7 @@ PostgreSQL documentation
|
||||
<cmdsynopsis>
|
||||
<command>pg_controldata</command>
|
||||
<arg choice="opt"><replaceable class="parameter">option</replaceable></arg>
|
||||
<arg choice="opt"><replaceable class="parameter">datadir</replaceable></arg>
|
||||
<arg choice="opt"><arg choice="opt"><option>-D</option></arg> <replaceable class="parameter">datadir</replaceable></arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
|
@ -30,7 +30,7 @@ PostgreSQL documentation
|
||||
<arg choice="opt"><option>-m</option> <replaceable class="parameter">mxid</replaceable>,<replaceable class="parameter">mxid</replaceable></arg>
|
||||
<arg choice="opt"><option>-O</option> <replaceable class="parameter">mxoff</replaceable></arg>
|
||||
<arg choice="opt"><option>-l</option> <replaceable class="parameter">xlogfile</replaceable></arg>
|
||||
<arg choice="plain"><replaceable>datadir</replaceable></arg>
|
||||
<arg choice="req"><arg choice="opt"><option>-D</option></arg> <replaceable class="parameter">datadir</replaceable></arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
|
Reference in New Issue
Block a user