Re: synchronized_standby_slots behavior inconsistent with quorum-based synchronous replication

From: Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>
To: Ajin Cherian <itsajin(at)gmail(dot)com>
Cc: SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: synchronized_standby_slots behavior inconsistent with quorum-based synchronous replication
Date: 2026-03-12 12:36:48
Message-ID: CAE9k0P=nsRZ4QSncmDzrpN19Pv1KUVRzmvSQj1=qzSF3KOaVnw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Ajin,

On Thu, Mar 12, 2026 at 4:47 PM Ajin Cherian <itsajin(at)gmail(dot)com> wrote:
>
> On Sun, Mar 8, 2026 at 4:16 AM Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> wrote:
> >
> > Hi All,
> >
> > Submitting a new version of the patch based on Satya's earlier work - [1].
> >
> > Please take a look and let us know your thoughts.
> >
> > [1] - https://www.postgresql.org/message-id/CAHg%2BQDfU7rOebrLDESPpHSgdiadKbpCOmBokcbmM6Gr%2BA5VobQ%40mail.gmail.com
> >
>
> Hi Ashutosh,
>
> I was testing this patch and it seems, if the name of the slots starts
> with first, say firstslot or firstsub, then the patch treats it as
> FIRST 1 priority mode.
>

Thanks for identifying and reporting this - confirmed, it is indeed an
issue. The attached patch addresses it and also adds a regression test
case for the same.

Additionally, it also fixes the issue related to log message reporting
for unavailable/invalid slots that Shveta raised yesterday.

Please take a look and feel free to share any further comments.

--
With Regards,
Ashutosh Sharma.

Attachment Content-Type Size
v20260312-0001-Add-FIRST-N-and-ANY-N-syntax-support-to-synchronized.patch application/octet-stream 45.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Sharma 2026-03-12 12:43:33 Re: Report bytes and transactions actually sent downtream
Previous Message Yura Sokolov 2026-03-12 12:22:35 Re: Why clearing the VM doesn't require registering vm buffer in wal record