Skip to content

Commit d41202f

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 1f39bce commit d41202f

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
@@ -1531,7 +1531,7 @@ index_concurrently_swap(Oid newIndexId, Oid oldIndexId, const char *oldName)
15311531
newIndexForm->indisclustered = oldIndexForm->indisclustered;
15321532

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

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