Re: visibility map corruption

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Floris Van Nee <florisvannee(at)optiver(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>
Subject: Re: visibility map corruption
Date: 2021-07-07 00:36:13
Message-ID: 20210707003613.GG26994@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jul 6, 2021 at 06:49:10PM -0400, Bruce Momjian wrote:
> On Tue, Jul 6, 2021 at 03:46:48PM -0700, Peter Geoghegan wrote:
> > On Tue, Jul 6, 2021 at 3:30 PM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > > Yes, I can, though it seems like a much bigger issue than pg_upgrade.
> > > I will be glad to dig into it.
> >
> > I'm not sure what you mean by that. Technically this would be an issue
> > for any program that uses "pg_resetwal -x" in the way that pg_upgrade
> > does, with those same expectations. But isn't pg_upgrade the only
> > known program that behaves like that?
> >
> > I don't see any reason why this wouldn't be treated as a pg_upgrade
> > bug in the release notes, regardless of the exact nature or provenance
> > of the issue -- the pg_upgrade framing seems useful because this is a
> > practical problem for pg_upgrade users alone. Have I missed something?
>
> My point is that there are a lot internals involved here that are not
> part of pg_upgrade, though it probably only affects pg_upgrade. Anyway,
> Bertrand patch seems to have what I need.

One question is how do we want to handle cases where -x next_xid is used
but -u oldestXid is not used? Compute a value for oldestXid like we did
previously? Throw an error? Leave oldestXid unchanged? I am thinking
the last option.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

If only the physical world exists, free will is an illusion.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Nancarrow 2021-07-07 00:55:16 Re: Re[3]: On login trigger: take three
Previous Message Peter Smith 2021-07-07 00:03:43 Re: Refactor "mutually exclusive options" error reporting code in parse_subscription_options