Skip to content

Commit 28766c0

Browse files
vacuumdb: Correct comment about --force-index-cleanup.
Commit 3499df0 added a comment that incorrectly suggested that --force-index-cleanup did not appear in the same major version as the similar --no-index-cleanup option. In fact, both options are new to PostgreSQL 14. Backpatch: 14-, where both options were introduced.
1 parent 0c08856 commit 28766c0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/bin/scripts/vacuumdb.c

+1-8
Original file line numberDiff line numberDiff line change
@@ -916,14 +916,7 @@ prepare_vacuum_command(PQExpBuffer sql, int serverVersion,
916916
}
917917
if (vacopts->force_index_cleanup)
918918
{
919-
/*
920-
* "INDEX_CLEANUP TRUE" has been supported since v12.
921-
*
922-
* Though --force-index-cleanup was added to vacuumdb in v14,
923-
* the "INDEX_CLEANUP TRUE" server/VACUUM behavior has never
924-
* changed. No reason not to support --force-index-cleanup on
925-
* v12+.
926-
*/
919+
/* "INDEX_CLEANUP TRUE" has been supported since v12 */
927920
Assert(serverVersion >= 120000);
928921
Assert(!vacopts->no_index_cleanup);
929922
appendPQExpBuffer(sql, "%sINDEX_CLEANUP TRUE", sep);

0 commit comments

Comments
 (0)