pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Restart the apply worker if the privileges have been revoked.
Date: Tue, 17 Oct 2023 03:20:53 +0000
Message-ID: <E1qsadZ-000wG6-GO@gemulon.postgresql.org> (raw)

Restart the apply worker if the privileges have been revoked.

Restart the apply worker if the subscription owner's superuser privileges
have been revoked. This is required so that the subscription connection
string gets revalidated and use the password option to connect to the
publisher for non-superusers, if required.

Author: Vignesh C
Reviewed-by: Amit Kapila
Discussion: http://postgr.es/m/CALDaNm2Dxmhq08nr4P6G+24QvdBo_GAVyZ_Q1TcGYK+8NHs9xw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/79243de13f4d251309d7831744e98d6b965ed4d6

Modified Files
--------------
src/backend/catalog/pg_subscription.c       |  3 +++
src/backend/commands/subscriptioncmds.c     |  4 ++--
src/backend/replication/logical/tablesync.c |  6 ++----
src/backend/replication/logical/worker.c    | 33 ++++++++++++++++++++++++-----
src/include/catalog/pg_subscription.h       |  1 +
src/test/subscription/t/027_nosuperuser.pl  | 24 +++++++++++++++++++++
6 files changed, 60 insertions(+), 11 deletions(-)



Message-ID: <E1qsadZ-000wG6-GO@gemulon.postgresql.org>
Permalink:  ../E1qsadZ-000wG6-GO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qsadZ-000wG6-GO@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Restart the apply worker if the privileges have been revoked.
  In-Reply-To: <E1qsadZ-000wG6-GO@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