Add a WAIT option to DROP_REPLICATION_SLOT

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 8ba6d50f923bfc1d7cc91f5ff11e199f18d7fd80
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-09-01T11:53:34Z
Releases: 10.0
Add a WAIT option to DROP_REPLICATION_SLOT

Commit 9915de6c1cb2 changed the default behavior of
DROP_REPLICATION_SLOT so that it would wait until any session holding
the slot active would release it, instead of raising an error.  But
users are already depending on the original behavior, so revert to it by
default and add a WAIT option to invoke the new behavior.

Per complaint from Simone Gotti, in
Discussion: https://postgr.es/m/CAEvsy6Wgdf90O6pUvg2wSVXL2omH5OPC-38OD4Zzgk-FXavj3Q@mail.gmail.com

Files

Documentation touched

Discussion