Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit73f8d73

Browse files
committed
pg_xlogdump: document --path behavior
The previous --path documentation and --help output were wrong in bothits meaning and the defaults.Reviewed-by: Michael PaquierBackpatch-through: 9.6
1 parentabfd009 commit73f8d73

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

‎doc/src/sgml/ref/pg_xlogdump.sgml

Lines changed: 6 additions & 3 deletions
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

Lines changed: 3 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp