| 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-23 22:16:37 |
| Message-ID: | CAN4CZFPPX6T4HZe8OK=TaZQG216bMxpbuc5O6aibRBj2VGULfw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Mon, 23 Nov 2026, Jesper St John <jesper(at)stjohn(dot)se> wrote:
> But it seems that in master today, a previously created slot which would
> be specified by --slot and not --create-slot could also be invalidated
> if a tiny idle_replication_slot_timeout is set.
It seems like a new behavior to me with --create-slot (I agree that it
is preexisting with --slot).
Also, --create-slot leaves the slot behind in this case, which is also
new. And this happens in two more cases: when the connection is lost
and when the process is killed with SIGINT/SIGTERM during the
checkpoint.
The new hint can also be misleading in some cases:
PGOPTIONS='-c idle_session_timeout=2s' pg_basebackup -X stream
--checkpoint=spread (no slot invalidated in the server log)
pg_basebackup: warning: replication slot "pg_basebackup_664448" was
invalidated during the base backup checkpoint, recreating it
pg_basebackup: hint: You might need to increase "max_slot_wal_keep_size".
I am not sure if this is bad or not, because that is probably the more
common case of why is this happening, and the hint says 'might', so it
might be okay.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zsolt Parragi | 2026-11-23 22:49:10 | Re: Logical replication commits duplicates in DEFERRABLE unique indexes |
| Previous Message | Álvaro Herrera | 2026-11-23 21:57:52 | Re: BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off` |