Improve error message about active replication slot
The old phrasing was awkward if a replication slot is activated and deactivated repeatedly.
This commit is contained in:
parent
fc8a81e3e7
commit
18777c38e9
@ -352,7 +352,7 @@ ReplicationSlotAcquire(const char *name)
|
|||||||
if (active_pid != 0)
|
if (active_pid != 0)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_IN_USE),
|
(errcode(ERRCODE_OBJECT_IN_USE),
|
||||||
errmsg("replication slot \"%s\" is already active for PID %d",
|
errmsg("replication slot \"%s\" is active for PID %d",
|
||||||
name, active_pid)));
|
name, active_pid)));
|
||||||
|
|
||||||
/* We made this slot active, so it's ours now. */
|
/* We made this slot active, so it's ours now. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user