Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73f8d73

Browse files
committed
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
1 parent abfd009 commit 73f8d73

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

doc/src/sgml/ref/pg_xlogdump.sgml

+6-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ PostgreSQL documentation
117117
<term><option>--path=<replaceable>path</replaceable></option></term>
118118
<listitem>
119119
<para>
120-
Directory in which to find log segment files. The default is to search
121-
for them in the <literal>pg_wal</literal> subdirectory of the current
122-
directory.
120+
Specifies a directory to search for log segment files or a
121+
directory with a <literal>pg_wal</literal> subdirectory that
122+
contains such files. The default is to search in the current
123+
directory, the <literal>pg_wal</literal> subdirectory of the
124+
current directory, and the <literal>pg_wal</literal> subdirectory
125+
of <envar>PGDATA</envar>.
123126
</para>
124127
</listitem>
125128
</varlistentry>

src/bin/pg_xlogdump/pg_xlogdump.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,9 @@ usage(void)
679679
printf(_(" -e, --end=RECPTR stop reading at log position RECPTR\n"));
680680
printf(_(" -f, --follow keep retrying after reaching end of WAL\n"));
681681
printf(_(" -n, --limit=N number of records to display\n"));
682-
printf(_(" -p, --path=PATH directory in which to find log segment files\n"
683-
" (default: ./pg_wal)\n"));
682+
printf(_(" -p, --path=PATH directory in which to find log segment files or a\n"
683+
" directory with a ./pg_wal that contains such files\n"
684+
" (default: current directory, ./pg_wal, PGDATA/pg_wal)\n"));
684685
printf(_(" -r, --rmgr=RMGR only show records generated by resource manager RMGR\n"
685686
" use --rmgr=list to list valid resource manager names\n"));
686687
printf(_(" -s, --start=RECPTR start reading at log position RECPTR\n"));

0 commit comments

Comments
 (0)