mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42: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:
@ -3775,7 +3775,7 @@ PostgresMain(int argc, char *argv[],
|
||||
* it inside InitPostgres() instead. In particular, anything that
|
||||
* involves database access should be there, not here.
|
||||
*/
|
||||
InitPostgres(dbname, InvalidOid, username, InvalidOid, NULL);
|
||||
InitPostgres(dbname, InvalidOid, username, InvalidOid, NULL, false);
|
||||
|
||||
/*
|
||||
* If the PostmasterContext is still around, recycle the space; we don't
|
||||
|
Reference in New Issue
Block a user