aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-05-30 14:57:01 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-06-02 15:16:57 -0400
commit420a0392ef8fdac3eb6f0a616c136215f7454674 (patch)
tree642f2caeb6b4743f83625cca762e9aeabc692c67
parent9fcf670c2efdf31233d429f557ab77937f0f1e6a (diff)
downloadpostgresql-420a0392ef8fdac3eb6f0a616c136215f7454674.tar.gz
postgresql-420a0392ef8fdac3eb6f0a616c136215f7454674.zip
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 5386e86aa6b..c0f7fbb2b29 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++)