Commit 18777c38 authored by Peter Eisentraut's avatar Peter Eisentraut

Improve error message about active replication slot

The old phrasing was awkward if a replication slot is activated and
deactivated repeatedly.
parent fc8a81e3
...@@ -352,7 +352,7 @@ ReplicationSlotAcquire(const char *name) ...@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment