From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
Cc: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Fix assert failure when decoding XLOG_PARAMETER_CHANGE on primary |
Date: | 2025-02-24 11:31:30 |
Message-ID: | CAA4eK1LEkFHWHnTP7F9tdgoKC57uRM+UP3J-W2wBhmxsViQ2oQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Feb 12, 2025 at 5:22 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Wed, Feb 12, 2025 at 1:16 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> >
> >
> > Agreed, I'm fine with leaving InRecovery in this condition. I think
> > the point is whether we should add StandbyMode to the condition or
> > not. I think if we do that, we would end up with the same error in the
> > above scenario I described. So does the following condition make
> > sense?
> >
> > if (InRecovery &&
> > xlrec.wal_level < WAL_LEVEL_LOGICAL &&
> > wal_level >= WAL_LEVEL_LOGICAL)
> > InvalidateObsoleteReplicationSlots(RS_INVAL_WAL_LEVEL,
> > 0, InvalidOid,
> > InvalidTransactionId);
> >
>
> This will still be true for crash-recovery as the InRecovery flag will
> be true for that case as well. I think we should go with your v2 patch
> approach for HEAD and back-branches.
>
Any opinion on how to proceed here?
--
With Regards,
Amit Kapila.
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2025-02-24 11:42:36 | Re: MAX_BACKENDS size (comment accuracy) |
Previous Message | Shlok Kyal | 2025-02-24 11:18:50 | Re: long-standing data loss bug in initial sync of logical replication |