diff options
author | Bruce Momjian <bruce@momjian.us> | 2017-01-10 22:38:13 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2017-01-10 22:38:13 -0500 |
commit | 1c15f843485bf36e279686b6ed0b659232b975bb (patch) | |
tree | 8343c15bc3b8037fb900f6328d2a80e07d37efeb | |
parent | 22a85b3fbe85a9f1c92de90192de001b7394b4fe (diff) | |
download | postgresql-1c15f843485bf36e279686b6ed0b659232b975bb.tar.gz postgresql-1c15f843485bf36e279686b6ed0b659232b975bb.zip |
pg_xlogdump: document --path behavior
The previous --path documentation and --help output were wrong in both
its meaning and the defaults.
Reviewed-by: Michael Paquier
Backpatch-through: 9.6
-rw-r--r-- | doc/src/sgml/ref/pg_xlogdump.sgml | 9 | ||||
-rw-r--r-- | src/bin/pg_xlogdump/pg_xlogdump.c | 5 |
2 files changed, 9 insertions, 5 deletions
diff --git a/doc/src/sgml/ref/pg_xlogdump.sgml b/doc/src/sgml/ref/pg_xlogdump.sgml index 177caab00d4..16ca4434231 100644 --- a/doc/src/sgml/ref/pg_xlogdump.sgml +++ b/doc/src/sgml/ref/pg_xlogdump.sgml @@ -117,9 +117,12 @@ PostgreSQL documentation <term><option>--path=<replaceable>path</replaceable></option></term> <listitem> <para> - Directory in which to find log segment files. The default is to search - for them in the <literal>pg_xlog</literal> subdirectory of the current - directory. + Specifies a directory to search for log segment files or a + directory with a <literal>pg_xlog</literal> subdirectory that + contains such files. The default is to search in the current + directory, the <literal>pg_xlog</literal> subdirectory of the + current directory, and the <literal>pg_xlog</literal> subdirectory + of <envar>PGDATA</envar>. </para> </listitem> </varlistentry> diff --git a/src/bin/pg_xlogdump/pg_xlogdump.c b/src/bin/pg_xlogdump/pg_xlogdump.c index 9ad9321e1f9..5c546ceb797 100644 --- a/src/bin/pg_xlogdump/pg_xlogdump.c +++ b/src/bin/pg_xlogdump/pg_xlogdump.c @@ -679,8 +679,9 @@ usage(void) printf(" -e, --end=RECPTR stop reading at log position RECPTR\n"); printf(" -f, --follow keep retrying after reaching end of WAL\n"); printf(" -n, --limit=N number of records to display\n"); - printf(" -p, --path=PATH directory in which to find log segment files\n"); - printf(" (default: ./pg_xlog)\n"); + printf(" -p, --path=PATH directory in which to find log segment files or a\n"); + printf(" directory with a ./pg_xlog that contains such files\n" + " (default: current directory, ./pg_xlog, PGDATA/pg_xlog)\n"); printf(" -r, --rmgr=RMGR only show records generated by resource manager RMGR\n"); printf(" use --rmgr=list to list valid resource manager names\n"); printf(" -s, --start=RECPTR start reading at log position RECPTR\n"); |