mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 09:21:54 +03:00
Improve error message about active replication slot
The old phrasing was awkward if a replication slot is activated and deactivated repeatedly.
This commit is contained in:
@ -352,7 +352,7 @@ ReplicationSlotAcquire(const char *name)
|
|||||||
if (active_pid != 0)
|
if (active_pid != 0)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_IN_USE),
|
(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)));
|
name, active_pid)));
|
||||||
|
|
||||||
/* We made this slot active, so it's ours now. */
|
/* We made this slot active, so it's ours now. */
|
||||||
|
Reference in New Issue
Block a user