mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +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:
@ -1324,7 +1324,8 @@ ParallelWorkerMain(Datum main_arg)
|
||||
|
||||
/* Restore database connection. */
|
||||
BackgroundWorkerInitializeConnectionByOid(fps->database_id,
|
||||
fps->authenticated_user_id);
|
||||
fps->authenticated_user_id,
|
||||
0);
|
||||
|
||||
/*
|
||||
* Set the client encoding to the database encoding, since that is what
|
||||
|
Reference in New Issue
Block a user