From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
Cc: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Hugo DUBOIS <hdubois(at)scaleway(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Unexpected Standby Shutdown on sync_replication_slots change |
Date: | 2025-07-28 09:55:20 |
Message-ID: | CAA4eK1+3MB+yrODwh=TXqEtiu-OawZB-5u6-4ui1+RKOYgOppg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Mon, Jul 28, 2025 at 10:18 AM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
>
> On Fri, Jul 25, 2025 at 9:31 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> >
> > On Fri, Jul 25, 2025 at 9:13 PM Hugo DUBOIS <hdubois(at)scaleway(dot)com> wrote:
> > > I'm not sure if there's a particular use case for wal_level and sync_replication_slots not matching on a primary. So, for me, Option 1 seems correct.
> >
> > I also prefer option #1.
> >
> > However, on second thought, if some users are already running a server
> > (non-standby) with sync_replication_slots enabled and wal_level != logical
> > in v17, switching to option #1 could break their setup after a minor
> > version update. That would be surprising and confusing.
> >
> > To avoid that, I think we should go with option #2—at least for v17.
> >
>
> I still prefer option #1. On HEAD, option #1 makes sense because
> wal_level is a GUC that requires a server restart and thus using
> ERROR/FATAL in this context is appropriate. It is also consistent with
> the rest of the code (other modules) wherever wal_level checks are
> performed during startup.
>
> Regarding the back branches, in the case of a primary server, if
> sync_replication_slots is left ON while wal_level < logical, then
> issuing a ERROR/FATAL is still more suitable. The user can simply
> correct the configuration (disable sync_replication_slots) and proceed
> with the startup after the minor version upgrade. Also, given that
> option #1 is the better fit for HEAD, I don't think it's worth having
> different behavior in the back branches.
>
+1.
--
With Regards,
Amit Kapila.
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2025-07-28 11:51:15 | Re: BUG #18987: psqlodbc_setup.exe installs as Unknown Publisher |
Previous Message | Richard Guo | 2025-07-28 08:20:45 | Re: BUG #19000: gist index returns inconsistent result with gist_inet_ops |