postgres.git / summary / log / commit / refs
commit 18777c38e9cc2e032b919a7f532971745b32aec0
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Thu Feb 18 02:22:13 2016 +0000
First released in: 9.6.0
Improve error message about active replication slot
The old phrasing was awkward if a replication slot is activated and
deactivated repeatedly.
src/backend/replication/slot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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. */
[parent: fc8a81e3e73e]