Improve error message about active replication slot

The old phrasing was awkward if a replication slot is activated and
deactivated repeatedly.
pull/10/merge
Peter Eisentraut 10 years ago
parent fc8a81e3e7
commit 18777c38e9
  1. 2
      src/backend/replication/slot.c

@ -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. */

Loading…
Cancel
Save