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

Commit500256d

Browse files
Fix pg_amcheck --skip option parameter handling
The skip options set for all-visible and all-frozen were incorrectas they used space rather than hyphen, causing a syntax error wheninvoked. Also, the option for not skipping any pages at all, none,was documented but not implemented.Backpatch through 14 where pg_amcheck was introduced.Bug: #17149Reported-by: Chen Jiaoqian <chenjq.jy@fujitsu.com>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>Discussion:https://postgr.es/m/17149-5918ea748da36b15@postgresql.orgBackpatch-through: 14
1 parent6b71c92 commit500256d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/bin/pg_amcheck/pg_amcheck.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,11 @@ main(int argc, char *argv[])
395395
break;
396396
case6:
397397
if (pg_strcasecmp(optarg,"all-visible")==0)
398-
opts.skip="allvisible";
398+
opts.skip="all-visible";
399399
elseif (pg_strcasecmp(optarg,"all-frozen")==0)
400-
opts.skip="all frozen";
400+
opts.skip="all-frozen";
401+
elseif (pg_strcasecmp(optarg,"none")==0)
402+
opts.skip="none";
401403
else
402404
{
403405
pg_log_error("invalid argument for option %s","--skip");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp