| From: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> |
|---|---|
| To: | Jesper St John <jesper(at)stjohn(dot)se> |
| Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org, Jesper St John <admin(at)zonezero(dot)se>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Magnus Hagander <magnus(at)hagander(dot)net>, Kirill Reshke <reshkekirill(at)gmail(dot)com> |
| Subject: | Re: Timing issue in pg_basebackup |
| Date: | 2026-11-24 22:11:37 |
| Message-ID: | CAN4CZFOorJgT8uPMbN-AMe=vCPMTsC=nGQytAK+PdrTWhJ6Btg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Tue, 24 Nov 2026, Jesper St John <jesper(at)stjohn(dot)se> wrote:
> What if we create a temp slot before running base backup and then drop
> it and create a new slot if needed as it is done today? That way it
> shouldn't be hit by idle_replication_slot_timeout and any sigint/sigterm
> would not leave the slot behind.
>
> The patch might be smaller...
That could work. The main downside is that for a short time, this
needs 2 replication slots, so that would need some documentation. I
think that approach will also leave a few very unlikely races where we
could still hit the original issue, but unless I'm wrong, that should
be very unlikely to happen in practice.
>
> The idle_session_timeout of something smaller than the time it takes to
> do checkpoint=spread would probably recreate the timing issue with temp
> slot- so perhaps that could be overriden?
>
Yes, that could work too. But we can't override
idle_replication_slot_timeout, but that requires a somewhat
misconfigured server.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zsolt Parragi | 2026-11-24 22:44:05 | Re: BUG #19897: Recovery fails after "LOG: consistent recovery state reached" |
| Previous Message | Tom Lane | 2026-11-24 19:31:01 | Re: BUG #19873: planner silently drops the second ORDER BY sort key when both keys reference the same expression und |