pg_basebackup and replication slots

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_basebackup and replication slots
Date: 2015-05-21 12:42:26
Message-ID: 555DD2B2.7020000@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wonder why pg_basebackup doesn't have any support for replication slots.

When relying on replication slots to hang on to WAL data, there is a gap
between when pg_basebackup finishes and streaming replication is started
where WAL data could be thrown away by the primary.

Looking at the code, the -X stream method could easily specify a
replication slot. (Might be nice if it could also create it in the same
run.)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-05-21 12:43:17 Re: Support for N synchronous standby servers - take 2
Previous Message Heikki Linnakangas 2015-05-21 12:42:17 Re: Re: [COMMITTERS] pgsql: Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE.