From 18777c38e9cc2e032b919a7f532971745b32aec0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 17 Feb 2016 21:22:13 -0500 Subject: [PATCH] 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 a2c6524e0b..affa9b9cb3 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. */