pg_rewind and replication slots

2018-01-23 Thread Laurenz Albe
When a primary with replication slots gets reset with pg_rewind, it keeps the replication slots. This does no harm per se, but when it gets promoted again, the replication slots are still there and are in the way. Won't they also hold back the xmin horizon? I think that pg_rewind should delete al

Re: pg_rewind and replication slots

2018-01-23 Thread Michael Paquier
On Tue, Jan 23, 2018 at 08:49:53PM +0100, Laurenz Albe wrote: > When a primary with replication slots gets reset with pg_rewind, > it keeps the replication slots. > > This does no harm per se, but when it gets promoted again, > the replication slots are still there and are in the way. > Won't they