| From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
|---|---|
| To: | Hannu Krosing <hannuk(at)google(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [PATCH] Do not reuse recovery snapshots after recovery ends |
| Date: | 2026-12-03 02:44:09 |
| Message-ID: | CAHGQGwGBhYBkJBe-AbskavLvHAwY-YUi6Ku1Tvvt=B8_BLiEjw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Dec 3, 2026 at 3:43 AM Hannu Krosing <hannuk(at)google(dot)com> wrote:
> While reviewing a cfbot run for an unrelated patch series, I noticed an
> intermittent assertion failure in recovery/061_recovery_target_prefetch on
> macOS - Meson [1]:
>
> TRAP: failed Assert("TransactionIdPrecedesOrEquals(TransactionXmin,
> RecentXmin)"),
> File: "../src/backend/storage/ipc/procarray.c", Line: 2071
>
> This turns out to be a pre-existing race condition in GetSnapshotDataReuse()
> during standby promotion, present since commit 623a9ba79bb (PostgreSQL 14).
Thanks for the report!
This seems the same issue I reported at [1], where I also proposed
a fix. It would be helpful if you could review that patch.
Regards,
[1] https://postgr.es/m/CAHGQGwEduAjaWsb239RaMOkhVDT_XeX885Os_G=mEB7Wr9Ot0g@mail.gmail.com
--
Fujii Masao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bharath Rupireddy | 2026-12-03 03:06:45 | Re: Use WALReadFromBuffers in more places |
| Previous Message | shihao zhong | 2026-12-03 02:36:17 | Re: [PATCH] pageinspect: validate line pointers before using them |