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

From Peter Eisentraut
Subject Re: pg_basebackup and replication slots
Date
Msg-id 55B81FD9.7070606@gmx.net
Whole thread Raw
In response to Re: pg_basebackup and replication slots  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 7/22/15 12:43 AM, Michael Paquier wrote:
> OK, thanks for the updated versions. Those ones look good to me.

Committed, thanks.

> Now, do we plan to do something about the creation of a slot. I
> imagine that it would be useful if we could have --create-slot to
> create a slot when beginning a base backup and if-not-exists to
> control the error flow. There is already CreateReplicationSlot for
> this purpose in streamutils.c so most of the work is already done.
> Also, when a base backup fails for a reason or another, we should try
> to drop the slot in disconnect_and_exit() if it has been created by
> pg_basebackup. if if-not-exists is true and the slot already existed
> when beginning, we had better not dropping it perhaps...

I think it would be worthwhile to work on that, but in my mind it's a
separate feature, and I don't have any use for it, so I'm not going to
rush into it.





pgsql-hackers by date:

Previous
From: Euler Taveira
Date:
Subject: Re: TODO: replica information functions
Next
From: Qingqing Zhou
Date:
Subject: Re: Planner debug views