Allow background workers to bypass datallowconn
Magnus Hagander <magnus@hagander.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_prewarm/autoprewarm.c | modified | +1 −1 |
| src/backend/access/transam/parallel.c | modified | +2 −1 |
| src/backend/bootstrap/bootstrap.c | modified | +1 −1 |
| src/backend/postmaster/autovacuum.c | modified | +2 −2 |
| src/backend/postmaster/postmaster.c | modified | +4 −4 |
| src/backend/replication/logical/launcher.c | modified | +1 −1 |
| src/backend/replication/logical/worker.c | modified | +2 −1 |
| src/backend/tcop/postgres.c | modified | +1 −1 |
| src/backend/utils/init/postinit.c | modified | +5 −5 |
| src/include/miscadmin.h | modified | +1 −1 |
| src/include/postmaster/bgworker.h | modified | +5 −2 |