Re: Including replication slot data in base backups

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Including replication slot data in base backups
Date: 2014-04-02 00:59:28
Message-ID: CAB7nPqRHYyj9GfD3nRNBELZ0QFfdDr5nv9s3CBer1Q1mdobQRA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Apr 1, 2014 at 11:59 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> On 2014-04-01 16:45:46 +0200, Magnus Hagander wrote:
>> On Tue, Apr 1, 2014 at 2:24 PM, Michael Paquier
>> <michael(dot)paquier(at)gmail(dot)com>wrote:
>> > As of now, pg_basebackup creates an empty repository for pg_replslot/
>> > in a base backup, forcing the user to recreate slots on other nodes of
>> > the cluster with pg_create_*_replication_slot, or copy pg_replslot
>> > from another node. This is not really user-friendly especially after a
>> > failover where a given slave may not have the replication slot
>> > information of the master that it is replacing.
>
> What exactly is your use case for copying the slots?
I had in mind users that want to keep around base backups that could
be used for recovery operations like PITR using a base backup and
archives. It does not apply directly to a live standby, as it would
mean that this standby would be defined to retain WAL for other slaves
connected to the master.
Regards
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-04-02 01:22:45 Re: It seems no Windows buildfarm members are running find_typedefs
Previous Message Tom Lane 2014-04-02 00:53:47 It seems no Windows buildfarm members are running find_typedefs