Re: Stabilize recovery conflict stats checks in 031_recovery_conflict.pl

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Stabilize recovery conflict stats checks in 031_recovery_conflict.pl
Date: 2026-09-04 16:00:00
Message-ID: a799c60c-47ae-4c69-b64e-6e9f7533a9e7@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Nazir and Ayush,

04.09.2026 11:40, Nazir Bilal Yavuz wrote:
>>> I'm not sure about the autovacuum fix -- I've found that I tried the same
>>> targeted autovacuum = false as Melanie proposed back then ([1]) and the
>>> test still failed. Please let me recheck carefully if it's still an issue.
>>>
>>> Regarding v1-0001, I've tested it with the repro.patch applied and
>>> confirmed it works. Thank you!
>>>
>>> [1]https://www.postgresql.org/message-id/714729ea-f536-0faf-353b-cbd5c8f241ea%40gmail.com
>> Thanks for testing and confirming 0001.
> I confirm that the bug is reproducible with repro.patch and 0001 fixes it.
>
>> One detail I noticed in [1] is that the posted change sets
>> autovacuum_enabled=false on the initial table. That table is later dropped
>> and recreated for the recovery deadlock test, so the reloption does not
>> carry over. 0002 sets it on the recreated table instead.
> I generated the attached reproducer with help from an LLM, and I
> confirm that your 0002 fixes the problem and Alexander's change on the
> [1] fails because of the reason you mentioned.
>
> Both patches LGTM.

Yes, I've tested both on my side -- no single run (of thousands) failed.
Also checked with LLM all the failures of 031_recovery_conflict registered
on wiki -- they all should be ruled out now.

Thank you for spending time on this!

Best regards,
Alexander

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2026-09-04 16:23:39 Re: Further cleanup related to statistics import support in postgres_fdw
Previous Message Tom Lane 2026-09-04 15:50:22 Re: Make the transition state of avg(int2)/avg(int4)/sum(int2)/sum(int4) internal