Re: synchronized_standby_slots behavior inconsistent with quorum-based synchronous replication
Ashutosh Sharma <ashu.coek88@gmail.com>
From: Ashutosh Sharma <ashu.coek88@gmail.com>
To: Ajin Cherian <itsajin@gmail.com>
Cc: SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>,
shveta malik <shveta.malik@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-03-12T12:36:48Z
Lists: pgsql-hackers
Attachments
- v20260312-0001-Add-FIRST-N-and-ANY-N-syntax-support-to-synchronized.patch (application/octet-stream) patch v20260312-0001
Hi Ajin, On Thu, Mar 12, 2026 at 4:47 PM Ajin Cherian <itsajin@gmail.com> wrote: > > On Sun, Mar 8, 2026 at 4:16 AM Ashutosh Sharma <ashu.coek88@gmail.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.