pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow background workers to bypass datallowconn
Date: Thu, 05 Apr 2018 17:04:21 +0000
Message-ID: <E1f48JB-0001zZ-Nm@gemulon.postgresql.org> (raw)

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eed1ce72e1593d3e8b7461d7744808d4d6bf402b

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c           |  2 +-
src/backend/access/transam/parallel.c      |  3 ++-
src/backend/bootstrap/bootstrap.c          |  2 +-
src/backend/postmaster/autovacuum.c        |  4 ++--
src/backend/postmaster/postmaster.c        |  8 ++++----
src/backend/replication/logical/launcher.c |  2 +-
src/backend/replication/logical/worker.c   |  3 ++-
src/backend/tcop/postgres.c                |  2 +-
src/backend/utils/init/postinit.c          | 10 +++++-----
src/include/miscadmin.h                    |  2 +-
src/include/postmaster/bgworker.h          |  7 +++++--
11 files changed, 25 insertions(+), 20 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1f48JB-0001zZ-Nm@gemulon.postgresql.org>
Permalink:  ../E1f48JB-0001zZ-Nm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f48JB-0001zZ-Nm@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net
  Subject: Re: pgsql: Allow background workers to bypass datallowconn
  In-Reply-To: <E1f48JB-0001zZ-Nm@gemulon.postgresql.org>
  References: <E1f48JB-0001zZ-Nm@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox