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:
Peter Eisentraut 2016-02-17 21:22:13 -05:00
parent fc8a81e3e7
commit 18777c38e9
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ ReplicationSlotAcquire(const char *name)
if (active_pid != 0)
ereport(ERROR,
(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)));
/* We made this slot active, so it's ours now. */