Skip to content

Commit df53964

Browse files
committed
Rename --only-index to --only-indexes.
Hopefully makes more clear that all indexes of a table will be repacked.
1 parent 8337204 commit df53964

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/pg_repack.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static pgut_option options[] =
230230
{ 's', 's', "tablespace", &tablespace },
231231
{ 'b', 'S', "moveidx", &moveidx },
232232
{ 's', 'i', "index", &r_index },
233-
{ 'b', 'x', "only-index", &only_indexes },
233+
{ 'b', 'x', "only-indexes", &only_indexes },
234234
{ 'i', 'T', "wait-timeout", &wait_timeout },
235235
{ 'B', 'Z', "no-analyze", &analyze },
236236
{ 'i', 'j', "jobs", &jobs },
@@ -261,7 +261,7 @@ main(int argc, char *argv[])
261261
errmsg("cannot specify --index (-i) and --table (-t)")));
262262
else if (r_index && only_indexes)
263263
ereport(ERROR, (errcode(EINVAL),
264-
errmsg("cannot specify --index (-i) and --only-index (-x)")));
264+
errmsg("cannot specify --index (-i) and --only-indexes (-x)")));
265265
else if (only_indexes && !table_list.head)
266266
ereport(ERROR, (errcode(EINVAL),
267267
errmsg("cannot repack all indexes of database, specify the table with -t option")));
@@ -1842,7 +1842,7 @@ pgut_help(bool details)
18421842
printf(" -n, --no-order do vacuum full instead of cluster\n");
18431843
printf(" -j, --jobs=NUM Use this many parallel jobs for each table\n");
18441844
printf(" -i, --index=INDEX move only the specified index\n");
1845-
printf(" -x, --only-index move only indexes of the specified table\n");
1845+
printf(" -x, --only-indexes move only indexes of the specified table\n");
18461846
printf(" -T, --wait-timeout=SECS timeout to cancel other backends on conflict\n");
18471847
printf(" -Z, --no-analyze don't analyze at end\n");
18481848
}

0 commit comments

Comments
 (0)