8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a0012 commit e7e7da2Copy full SHA for e7e7da2
src/backend/replication/logical/worker.c
@@ -4545,12 +4545,14 @@ ApplyWorkerMain(Datum main_arg)
4545
replorigin_session_setup(originid, 0);
4546
replorigin_session_origin = originid;
4547
origin_startpos = replorigin_session_get_progress(false);
4548
- CommitTransactionCommand();
4549
4550
/* Is the use of a password mandatory? */
4551
must_use_password = MySubscription->passwordrequired &&
4552
!superuser_arg(MySubscription->owner);
4553
+ /* Note that the superuser_arg call can access the DB */
4554
+ CommitTransactionCommand();
4555
+
4556
LogRepWorkerWalRcvConn = walrcv_connect(MySubscription->conninfo, true,
4557
must_use_password,
4558
MySubscription->name, &err);
0 commit comments