Re: [EXTERNAL] pg_basebackup behavior on non-existent slot
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Dimitri Fontaine <Dimitri.Fontaine@microsoft.com>
Cc: Magnus Hagander <magnus@hagander.net>,
"pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2021-09-29T09:24:08Z
Lists: pgsql-bugs
> On 28 Sep 2021, at 13:12, Dimitri Fontaine <Dimitri.Fontaine@microsoft.com> wrote: > I think it’s safe to focus on Daniel’s entry in the commit fest, For reference, here is the output from your testcase running with the referenced patch: $ ./bin/pg_basebackup -p 5432 -D /tmp/bb -X stream -S SlotDoesNotExists -P pg_basebackup: error: could not send replication command "START_REPLICATION": ERROR: replication slot "SlotDoesNotExists" does not exist pg_basebackup: error: background WAL receiver terminated unexpectedly pg_basebackup: removing data directory "/tmp/bb" So this patch does seem to cover that case as well. > and use this pgsql-bugs email as a reminder that it should very probably be backported as a bug-fix to all the maintained branches. It probably should, I can't see anyone relying on the current behavior. It's however awfully intrusive for a backport as it effectively adds functionality to solve what could be devils-advocate argued is an inconvenience and not a bug. Our conservative stance on backports make this not a clear-cut case, but I'm interested in what others think here. -- Daniel Gustafsson https://vmware.com/
Commits
-
Quick exit on log stream child exit in pg_basebackup
- 0475a97f744d 15.0 landed