pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Greg Stark <stark@mit.edu>
Cc: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Петър Славов <pet.slavov@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY
Date: Wed, 25 May 2022 09:59:27 +0900
Message-ID: <Yo1/b7QibuJS6hAP@paquier.xyz> (raw)
In-Reply-To: <20220524222433.ibl6dgkc6jrriska@alap3.anarazel.de>
References: <CAH2-Wz=eJnkcLpgDhHzU=vz5Fu58HJxJB_Gt094Mx_L+6rD3_A@mail.gmail.com>
	<202205240902.bhkvu4lgljn3@alvherre.pgsql>
	<20220524163702.y2ct2gxk32zysxuf@alap3.anarazel.de>
	<20220524181542.cmec7rcv3vvvtze4@alap3.anarazel.de>
	<04B2AE56-C737-4F1E-ABEF-F88DA2280C5D@yandex-team.ru>
	<20220524190133.j6ee7zh4f5edt5je@alap3.anarazel.de>
	<CAM-w4HNJuqPBTR-MHP2OLGHBU-bx54MxUoqUEA6=jgtcL4uCeA@mail.gmail.com>
	<20220524222433.ibl6dgkc6jrriska@alap3.anarazel.de>

On Tue, May 24, 2022 at 03:24:33PM -0700, Andres Freund wrote:
> On 2022-05-24 17:11:12 -0400, Greg Stark wrote:
>> Aside from amcheck I wonder if we can come up with any way for users
>> to tell whether their index is affected or at risk. Like, is there a
>> way to tell from catalog entries if an index was created with CIC?
> 
> Not reliably, afaik. indcheckxmin won't ever be set for a CIC index IIRC, but
> it's not reliably set for a non-CIC index.

When it comes to REINDEX, we recreate entirely a new relation for the
concurrent flavor, dropping the old one.  Hence its OID changes, while
all the data from the old relation gets copied over.  That's not much
and you cannot use that for a CIC, still..
--
Michael

Attachments:

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

view thread (80+ messages)  latest in thread

Message-ID: <Yo1/b7QibuJS6hAP@paquier.xyz>
Permalink:  ../Yo1%2Fb7QibuJS6hAP@paquier.xyz/
Also on:    postgresql.org/message-id/Yo1/b7QibuJS6hAP@paquier.xyz

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, andres@anarazel.de, stark@mit.edu, x4mmm@yandex-team.ru, alvherre@alvh.no-ip.org, pg@bowt.ie, pet.slavov@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY
  In-Reply-To: <Yo1/b7QibuJS6hAP@paquier.xyz>

* 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