Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae

From: Melanie Plageman <melanieplageman(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, Peter Geoghegan <pg(at)bowt(dot)ie>, Alexander Lakhin <exclusion(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae
Date: 2024-05-16 23:57:27
Message-ID: CAAKRu_bXH2g_pchG7rN_4fs-_6_kVbbJ97gYRoN0Zdb9P04Wag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, May 9, 2024 at 5:56 PM Melanie Plageman
<melanieplageman(at)gmail(dot)com> wrote:
>
> I can repro the hang on 14 and 15 with the following:

-- snip --

I finally managed to write a TAP test which does the same thing as my
repro. The attached patch contains a test that is meant purely for
demonstration and reproduction by others -- not as a suggestion to add
to the recovery test suite on an ongoing basis.

I also attached the fix (targeting REL_15_STABLE) so that you can try
the repro TAP test with and without the fix.

The test is a bit fragile, so I won't be surprised if it doesn't work
for everyone.

Thank you so much to Andres, Thomas, and Daniel, all of whom helped me
debug various issues I was having with trying to make background_psql
work reliably for this test on 15. This was truly painful, but I never
would have gotten through it without my IPC::Run support group.

I'll probably add more robust comments to the test next week in
preparation for writing a detailed commit message for the fix
explaining the scenario.

- Melanie

Attachment Content-Type Size
0001-vacuum-hang-repro.patch text/x-patch 8.5 KB
fix_hang_15.patch text/x-patch 4.9 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bowen Shi 2024-05-17 02:12:32 Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae
Previous Message Andres Freund 2024-05-16 20:38:38 Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae