pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Thinko in index_concurrently_swap comment
2+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2020-03-19 d41202f36e fdaa16aecf  Fix comment related to concurrent index swapping in index.c
* Thinko in index_concurrently_swap comment
@ 2020-03-18 14:33  Julien Rouhaud <rjuju123@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Julien Rouhaud @ 2020-03-18 14:33 UTC (permalink / raw)
  To: pgsql-hackers; +Cc: peter.eisentraut@2ndquadrant.com

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.c index 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
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: Thinko in index_concurrently_swap comment
@ 2020-03-19 00:54  Michael Paquier <michael@paquier.xyz>
  parent: Julien Rouhaud <rjuju123@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2020-03-19 00:54 UTC (permalink / raw)
  To: Julien Rouhaud <rjuju123@gmail.com>; +Cc: pgsql-hackers; peter.eisentraut@2ndquadrant.com

On Wed, Mar 18, 2020 at 03:33:40PM +0100, Julien Rouhaud wrote:
> 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.

Thanks, Julien.  Fixed as of d41202f.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-03-19 00:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 14:33 Thinko in index_concurrently_swap comment Julien Rouhaud <rjuju123@gmail.com>
2020-03-19 00:54 ` Michael Paquier <michael@paquier.xyz>

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