Improve error message about active replication slot
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 18 Feb 2016 02:22:13 +0000 (21:22 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 18 Feb 2016 02:23:28 +0000 (21:23 -0500)
The old phrasing was awkward if a replication slot is activated and
deactivated repeatedly.

src/backend/replication/slot.c

index a2c6524e0b58cc152e2850a876cf13d2f2b99959..affa9b9cb3bb5ad9872ef57886a7ab0c6214e92c 100644 (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. */