pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Duncan Sands <duncan.sands@deepbluecap.com>
Cc: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Reproducible GIST index corruption under concurrent updates
Date: Thu, 21 Jan 2021 00:26:12 +0200
Message-ID: <ec1e7a22-efc9-3472-7c05-664baba0935c@iki.fi> (raw)
In-Reply-To: <594958.1611156310@sss.pgh.pa.us>
References: <a9690483-6c6c-3c82-c8ba-dc1a40848f11@deepbluecap.com>
	<28663562-8489-4680-BC26-CAEADEB258D1@yandex-team.ru>
	<132baf64-3764-0351-750e-0443e74f1052@iki.fi>
	<907491b3-87c7-aadd-3fb1-be3c542b7fb7@iki.fi>
	<55ea6133-f2d1-0cc5-8ce5-333e373164ba@deepbluecap.com>
	<b9cee27d-0ce9-7708-d197-580f62e5dab7@iki.fi>
	<594958.1611156310@sss.pgh.pa.us>

On 20/01/2021 17:25, Tom Lane wrote:
> Heikki Linnakangas <hlinnaka@iki.fi> writes:
>> Pushed as commit 6b4d3046f4, and backpatched down to version 12, where
>> this bug was introduced. It will appear in the next minor release.
> 
> I see you noted that REINDEX is required to repair any corrupted indexes.
> For the purposes of the release notes, can we characterize which indexes
> might be affected, or do we just have to say "better reindex all GIST
> indexes"?

Any GiST index that's been concurrently inserted might be corrupt. 
Better reindex all GiST indexes.

- Heikki

P.S. The GiST amcheck extension that's been discussed at [1] would catch 
this corruption, so if that was already committed, we could suggest 
using it. But that doesn't help us now.

[1] 
https://www.postgresql.org/message-id/CAF3eApa07-BajjG8+RYx-Dr_cq28ZA0GsZmUQrGu5b2ayRhB5A@mail.gmail... 
would catch this corruption





view thread (8+ messages)

Message-ID: <ec1e7a22-efc9-3472-7c05-664baba0935c@iki.fi>
Permalink:  ../ec1e7a22-efc9-3472-7c05-664baba0935c@iki.fi/
Also on:    postgresql.org/message-id/ec1e7a22-efc9-3472-7c05-664baba0935c@iki.fi

 · 

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 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-bugs@postgresql.org
  Cc: hlinnaka@iki.fi, tgl@sss.pgh.pa.us, duncan.sands@deepbluecap.com, x4mmm@yandex-team.ru
  Subject: Re: Reproducible GIST index corruption under concurrent updates
  In-Reply-To: <ec1e7a22-efc9-3472-7c05-664baba0935c@iki.fi>
  References: <a9690483-6c6c-3c82-c8ba-dc1a40848f11@deepbluecap.com> <28663562-8489-4680-BC26-CAEADEB258D1@yandex-team.ru> <132baf64-3764-0351-750e-0443e74f1052@iki.fi> <907491b3-87c7-aadd-3fb1-be3c542b7fb7@iki.fi> <55ea6133-f2d1-0cc5-8ce5-333e373164ba@deepbluecap.com> <b9cee27d-0ce9-7708-d197-580f62e5dab7@iki.fi> <594958.1611156310@sss.pgh.pa.us> <ec1e7a22-efc9-3472-7c05-664baba0935c@iki.fi>

* 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