summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-05-30 18:57:01 +0000
committerPeter Eisentraut2017-06-02 19:16:57 +0000
commit420a0392ef8fdac3eb6f0a616c136215f7454674 (patch)
tree642f2caeb6b4743f83625cca762e9aeabc692c67
parent9fcf670c2efdf31233d429f557ab77937f0f1e6a (diff)
Remove replication slot name check from ReplicationSlotAcquire()
When trying to access a replication slot that is supposed to already exist, we don't need to check the naming rules again. If the slot does not exist, we will then get a "does not exist" error message, which is generally more useful from the perspective of an end user.
-rw-r--r--src/backend/replication/slot.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 5386e86aa6..c0f7fbb2b2 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -331,8 +331,6 @@ ReplicationSlotAcquire(const char *name)
Assert(MyReplicationSlot == NULL);
- ReplicationSlotValidateName(name, ERROR);
-
/* Search for the named slot and mark it active if we find it. */
LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);
for (i = 0; i < max_replication_slots; i++)