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

Commitb5da1b3

Browse files
committed
pg_resetwal: Regroup --help output
Put the options to modify the control values into a separate group.This matches the outline of the man page.Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>Discussion:https://www.postgresql.org/message-id/flat/0f3ab4a1-ae80-56e8-3426-6b4a02507687@eisentraut.org
1 parent1d863c2 commitb5da1b3

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

‎src/bin/pg_resetwal/pg_resetwal.c

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,24 +1128,29 @@ static void
11281128
usage(void)
11291129
{
11301130
printf(_("%s resets the PostgreSQL write-ahead log.\n\n"),progname);
1131-
printf(_("Usage:\n %s [OPTION]... DATADIR\n\n"),progname);
1132-
printf(_("Options:\n"));
1131+
printf(_("Usage:\n"));
1132+
printf(_(" %s [OPTION]... DATADIR\n"),progname);
1133+
1134+
printf(_("\nOptions:\n"));
1135+
printf(_(" [-D, --pgdata=]DATADIR data directory\n"));
1136+
printf(_(" -f, --force force update to be done\n"));
1137+
printf(_(" -n, --dry-run no update, just show what would be done\n"));
1138+
printf(_(" -V, --version output version information, then exit\n"));
1139+
printf(_(" -?, --help show this help, then exit\n"));
1140+
1141+
printf(_("\nOptions to override control file values:\n"));
11331142
printf(_(" -c, --commit-timestamp-ids=XID,XID\n"
11341143
" set oldest and newest transactions bearing\n"
11351144
" commit timestamp (zero means no change)\n"));
1136-
printf(_(" [-D, --pgdata=]DATADIR data directory\n"));
11371145
printf(_(" -e, --epoch=XIDEPOCH set next transaction ID epoch\n"));
1138-
printf(_(" -f, --force force update to be done\n"));
11391146
printf(_(" -l, --next-wal-file=WALFILE set minimum starting location for new WAL\n"));
11401147
printf(_(" -m, --multixact-ids=MXID,MXID set next and oldest multitransaction ID\n"));
1141-
printf(_(" -n, --dry-run no update, just show what would be done\n"));
11421148
printf(_(" -o, --next-oid=OID set next OID\n"));
11431149
printf(_(" -O, --multixact-offset=OFFSET set next multitransaction offset\n"));
11441150
printf(_(" -u, --oldest-transaction-id=XID set oldest transaction ID\n"));
1145-
printf(_(" -V, --version output version information, then exit\n"));
11461151
printf(_(" -x, --next-transaction-id=XID set next transaction ID\n"));
11471152
printf(_(" --wal-segsize=SIZE size of WAL segments, in megabytes\n"));
1148-
printf(_(" -?, --help show this help, then exit\n"));
1153+
11491154
printf(_("\nReport bugs to <%s>.\n"),PACKAGE_BUGREPORT);
11501155
printf(_("%s home page: <%s>\n"),PACKAGE_NAME,PACKAGE_URL);
11511156
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp