From: Ben Chobot <bench@silentmedia.com>
To: Nick Cleaton <nick@cleaton.net>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17389: pg_repack creates race conditions on streaming replicas
Date: Tue, 1 Feb 2022 07:25:13 -0800
Message-ID: <8cc974ce-8398-a892-a0dc-a65d5b5d65c6@silentmedia.com> (raw)
In-Reply-To: <CAFgz3kvQ=GVC=g31632aoG=G3VWzgfC_z4ntc3G5ZokcGLHHrw@mail.gmail.com>
References: <17389-c866083cf152593e@postgresql.org>
<CAFgz3kvQ=GVC=g31632aoG=G3VWzgfC_z4ntc3G5ZokcGLHHrw@mail.gmail.com>
Nick Cleaton wrote on 2/1/22 12:43 AM:
> We've very occasionally seen something similar with a script that did
> CREATE INDEX CONCURRENTLY, RENAME INDEX and DROP INDEX CONCURRENTLY on
> the primary, but not since we upgraded from 9.4 to 12 and switched to
> using REINDEX CONCURRENTLY. In our case the OID in the error belonged
> to the index that was dropped, not the table.
>
> I think It'd be worth noting the OIDs of the table and its indexes
> before each run, so that you can tell if it belongs to an index in
> your case.
Oh it most certainly did. (We validated it in other testing, and the
test we ran had pg_repack only working on indices anyway.)
It's good to hear you don't see any such issues using SQL commands. Have
you tried using a simple REINDEX CONCURRENTLY?
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: bench@silentmedia.com, nick@cleaton.net
Subject: Re: BUG #17389: pg_repack creates race conditions on streaming replicas
In-Reply-To: <8cc974ce-8398-a892-a0dc-a65d5b5d65c6@silentmedia.com>
References: <17389-c866083cf152593e@postgresql.org> <CAFgz3kvQ=GVC=g31632aoG=G3VWzgfC_z4ntc3G5ZokcGLHHrw@mail.gmail.com> <8cc974ce-8398-a892-a0dc-a65d5b5d65c6@silentmedia.com>
* 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