Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2020-03-19 00:51:33 +0000
committerMichael Paquier2020-03-19 00:51:33 +0000
commitd41202f36eed97a4ee68a6a9f5fcca314f12c35d (patch)
tree5e755142ccb95ef2dfd069e5503f34bc597f252e /src/backend
parent1f39bce021540fde00990af55b4432c55ef4b3c7 (diff)
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
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/catalog/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c
index 76fd938ce33..023ec7e6188 100644
--- a/src/backend/catalog/index.c
+++ b/src/backend/catalog/index.c
@@ -1531,7 +1531,7 @@ index_concurrently_swap(Oid newIndexId, Oid oldIndexId, const char *oldName)
newIndexForm->indisclustered = oldIndexForm->indisclustered;
/*
- * Mark the old index as valid, and the new index as invalid similarly
+ * Mark the new index as valid, and the old index as invalid similarly
* to what index_set_state_flags() does.
*/
newIndexForm->indisvalid = true;