]> granicus.if.org Git - postgresql/commit
Allow background workers to bypass datallowconn
authorMagnus Hagander <magnus@hagander.net>
Thu, 5 Apr 2018 16:59:32 +0000 (18:59 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 5 Apr 2018 17:02:45 +0000 (19:02 +0200)
commiteed1ce72e1593d3e8b7461d7744808d4d6bf402b
tree19b57473d3ac769d9e03562924a2ab33ab0bc6b0
parent1664ae1978bf0f5ee940dc2fc8313e6400a7e7da
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.
contrib/pg_prewarm/autoprewarm.c
src/backend/access/transam/parallel.c
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/autovacuum.c
src/backend/postmaster/postmaster.c
src/backend/replication/logical/launcher.c
src/backend/replication/logical/worker.c
src/backend/tcop/postgres.c
src/backend/utils/init/postinit.c
src/include/miscadmin.h
src/include/postmaster/bgworker.h