projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc8a81e
)
Improve error message about active replication slot
author
Peter Eisentraut
<peter_e@gmx.net>
Thu, 18 Feb 2016 02:22:13 +0000
(21:22 -0500)
committer
Peter 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/slot.c
b/src/backend/replication/slot.c
index a2c6524e0b58cc152e2850a876cf13d2f2b99959..affa9b9cb3bb5ad9872ef57886a7ab0c6214e92c 100644
(file)
--- 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 a
lready a
ctive 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. */