| From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
|---|---|
| To: | Zhijie Hou <houzhijie22(at)gmail(dot)com> |
| Cc: | Álvaro Herrera <alvherre(at)kurilemu(dot)de>, "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 17:39:13 |
| Message-ID: | CAD21AoBeB6WwSqm2ky7R6uyzDcEehToWmcQCTjwwaeWYKwGaJg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Nov 30, 2026 at 5:57 AM Zhijie Hou <houzhijie22(at)gmail(dot)com> wrote:
>
> 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.
Thanks, good catch.
I've pushed the v5 patch.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | 'Álvaro Herrera' | 2026-11-30 17:12:07 | Re: logical decoding: removing change_useless_for_repack() |