mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Allow background workers to bypass datallowconn
THis adds a "flags" field to the BackgroundWorkerInitializeConnection() and BackgroundWorkerInitializeConnectionByOid(). For now only one flag, BGWORKER_BYPASS_ALLOWCONN, is defined, which allows the worker to ignore datallowconn.
This commit is contained in:
@ -1544,7 +1544,8 @@ ApplyWorkerMain(Datum main_arg)
|
||||
|
||||
/* Connect to our database. */
|
||||
BackgroundWorkerInitializeConnectionByOid(MyLogicalRepWorker->dbid,
|
||||
MyLogicalRepWorker->userid);
|
||||
MyLogicalRepWorker->userid,
|
||||
0);
|
||||
|
||||
/* Load the subscription into persistent memory context. */
|
||||
ApplyContext = AllocSetContextCreate(TopMemoryContext,
|
||||
|
Reference in New Issue
Block a user