]> granicus.if.org Git - postgresql/commit
Properly remove ephemeral replication slots after a crash restart.
authorAndres Freund <andres@anarazel.de>
Thu, 24 Jul 2014 12:32:34 +0000 (14:32 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 24 Jul 2014 12:44:41 +0000 (14:44 +0200)
commitfece13d7477720bcbf02af795bed695c54d1250c
treec3e193eccfaba0474369e5ba22d735712f5a5266
parent8da262879ef5e53620b9e6a0da82510d09c105cb
Properly remove ephemeral replication slots after a crash restart.

Ephemeral slots - slots that shouldn't survive database restarts -
weren't properly cleaned up after a immediate/crash restart. They were
ignored in the sense that they weren't restored into memory and thus
didn't cause unwanted resource retention; but they prevented a new
slot with the same name from being created.

Now ephemeral slots are fully removed during startup.

Backpatch to 9.4 where replication slots where added.
src/backend/replication/slot.c