Skip to content

Commit fdaa16a

Browse files
committed
Fix comment related to concurrent index swapping in index.c
A comment about switching indisvalid of the new and old indexes swapped in REINDEX CONCURRENTLY got this backwards. Issue introduced by 5dc92b8, the original commit of REINDEX CONCURRENTLY. Author: Julien Rouhaud Discussion: https://postgr.es/m/20200318143340.GA46897@nol Backpatch-through: 12
1 parent 21b1cb6 commit fdaa16a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ index_concurrently_swap(Oid newIndexId, Oid oldIndexId, const char *oldName)
15321532
newIndexForm->indisclustered = oldIndexForm->indisclustered;
15331533

15341534
/*
1535-
* Mark the old index as valid, and the new index as invalid similarly
1535+
* Mark the new index as valid, and the old index as invalid similarly
15361536
* to what index_set_state_flags() does.
15371537
*/
15381538
newIndexForm->indisvalid = true;

0 commit comments

Comments
 (0)