Re: pg_basebackup and replication slots - Mailing list pgsql-hackers

From Andres Freund
Subject Re: pg_basebackup and replication slots
Date
Msg-id 20150729104353.GB10043@alap3.anarazel.de
Whole thread Raw
In response to Re: pg_basebackup and replication slots  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: pg_basebackup and replication slots  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On 2015-07-29 09:17:04 +0100, Simon Riggs wrote:
> On 29 July 2015 at 09:09, Andres Freund <andres@anarazel.de> wrote:
> > The point of using a temporary slot is to not have a
> > leftover slot afterwards, reserving resources. Especially important if
> > the basebackup actually failed...
> >
> 
> Creating a slot and then deleting it if the session disconnects does not
> successfully provide the functionality desired above.

Uh? If you create the slot, start streaming, and then start the
basebackup, it does. It does *not* guarantee that the base backup can be
converted into a replica, but it's sufficient to guarantee it can
brought out of recovery.



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Don'st start streaming after creating a slot in pg_receivexlog
Next
From: "Shulgin, Oleksandr"
Date:
Subject: Re: [PATCH] Generalized JSON output functions