From: Julien Rouhaud <rjuju123@gmail.com>
To: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com
Subject: Thinko in index_concurrently_swap comment
Date: Wed, 18 Mar 2020 15:33:40 +0100
Message-ID: <20200318143340.GA46897@nol> (raw)
Hi,
While looking at RIC for the collation versioning issue Michael raised earlier,
I found a thinko in a nearby comment, apparently introduced in the original
REINDEX CONCURRENTLY patch (5dc92b8). Trivial patch attached.
Attachments:0001-Fix-comment-in-index_concurrently_swap.patch (text/plain, 886B) download
From 161ea86380a50caeee8de81fe82d6eb106a2fd39 Mon Sep 17 00:00:00 2001
From: Julien Rouhaud <julien.rouhaud@free.fr>
Date: Wed, 18 Mar 2020 15:16:35 +0100
Subject: [PATCH] Fix comment in index_concurrently_swap()
---
src/backend/catalog/index.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.cindex 76fd938ce3..023ec7e618 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;
--
2.20.1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: rjuju123@gmail.com, peter.eisentraut@2ndquadrant.com
Subject: Re: Thinko in index_concurrently_swap comment
In-Reply-To: <20200318143340.GA46897@nol>
References: <20200318143340.GA46897@nol>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox