diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-03-19 09:51:40 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-03-19 09:51:40 +0900 |
commit | fdaa16aecfd98eb72718cbfe2d645c0b4e3124cd (patch) | |
tree | 9909548bd103a164d47e85c57b16398996d2b55a | |
parent | 21b1cb6a786e0e0598a7d2b262e1a5ca0dfceba4 (diff) | |
download | postgresql-fdaa16aecfd98eb72718cbfe2d645c0b4e3124cd.tar.gz postgresql-fdaa16aecfd98eb72718cbfe2d645c0b4e3124cd.zip |
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
-rw-r--r-- | src/backend/catalog/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index ad5dbb48461..ca7b7f88bdc 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -1532,7 +1532,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; |