Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit420a039

Browse files
committed
Remove replication slot name check from ReplicationSlotAcquire()
When trying to access a replication slot that is supposed to alreadyexist, we don't need to check the naming rules again. If the slotdoes not exist, we will then get a "does not exist" error message, whichis generally more useful from the perspective of an end user.
1 parent9fcf670 commit420a039

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)

[8]ページ先頭

©2009-2025 Movatter.jp