diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2016-02-17 21:22:13 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2016-02-17 21:23:28 -0500 |
commit | 18777c38e9cc2e032b919a7f532971745b32aec0 (patch) | |
tree | 420048e91995762c4f2198ae3eb43ce57ef7d568 | |
parent | fc8a81e3e73e30ac083cc60837ecf98b33d5cc7e (diff) | |
download | postgresql-18777c38e9cc2e032b919a7f532971745b32aec0.tar.gz postgresql-18777c38e9cc2e032b919a7f532971745b32aec0.zip |
Improve error message about active replication slot
The old phrasing was awkward if a replication slot is activated and
deactivated repeatedly.
-rw-r--r-- | src/backend/replication/slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index a2c6524e0b5..affa9b9cb3b 100644 --- a/src/backend/replication/slot.c +++ b/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. */ |