Skip to content

Commit 420a039

Browse files
committed
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.
1 parent 9fcf670 commit 420a039

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/replication/slot.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ ReplicationSlotAcquire(const char *name)
331331

332332
Assert(MyReplicationSlot == NULL);
333333

334-
ReplicationSlotValidateName(name, ERROR);
335-
336334
/* Search for the named slot and mark it active if we find it. */
337335
LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);
338336
for (i = 0; i < max_replication_slots; i++)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy