| From: | Zhijie Hou <houzhijie22(at)gmail(dot)com> |
|---|---|
| To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
| Cc: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Fix LogStandbySnapshot() race during logical decoding activation |
| Date: | 2026-11-30 13:57:37 |
| Message-ID: | fa058ff3-15fe-4104-971f-d636ba1791f5@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On Thu, Nov26, 2026 at 09:19 PM Álvaro Herrera wrote:
> On 2026-Nov-25, Masahiko Sawada wrote:
>
> > I've reviewed the v3 patch and felt the new comments were a bit long
> > and redundant to me.
>
> The v3 patch looks good to me, thanks.
>
While checking CFbot[1], I noticed that the new test in
051_effective_wal_level.pl failed on the macOS CI job, which runs with
debug_parallel_query = regress. Because pg_log_standby_snapshot() is
marked parallel-safe, SELECT pg_log_standby_snapshot() was executed in a
parallel worker instead of the leader backend where the local injection
point was attached, causing wait_for_event() to time out.
Attached is the v5 patch, the only change is to set debug_parallel_query
= off in the test session so pg_log_standby_snapshot() runs in the
leader backend.
[1]
https://github.com/postgres/postgres-cfbot/actions/runs/45695975108/job/139493944741
--
Best Regards,
Zhijie Hou
| Attachment | Content-Type | Size |
|---|---|---|
| v5-0001-Fix-LogStandbySnapshot-race-when-enabling-logical.patch | text/plain | 7.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Matheus Alcantara | 2026-11-30 14:09:49 | Performance improvements on rescan of Append/MergeAppend with run-time partition pruning |
| Previous Message | David E. Wheeler | 2026-11-30 13:54:37 | Re: ABI Compliance Checker GSoC Project |