Skip to content

Commit 9a3d41a

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 1e87513 commit 9a3d41a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/bin/scripts/vacuumdb.c

Lines changed: 1 addition & 8 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy