pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace superuser check by ACLs for replication origin functions
Date: Sun, 14 Jun 2020 03:43:38 +0000
Message-ID: <E1jkJYY-00064W-KX@gemulon.postgresql.org> (raw)

Replace superuser check by ACLs for replication origin functions

This patch removes the hardcoded check for superuser privileges when
executing replication origin functions.  Instead, execution is revoked
from public, meaning that those functions can be executed by a superuser
and that access to them can be granted.

Author: Martín Marqués
Reviewed-by: Kyotaro Horiguchi, Michael Paquier, Masahiko Sawada
Discussion: https:/postgr.es/m/CAPdiE1xJMZOKQL3dgHMUrPqysZkgwzSMXETfKkHYnBAB7-0VRQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
contrib/test_decoding/expected/replorigin.out | 29 +++++++++++++++++++++++++++
contrib/test_decoding/sql/replorigin.sql      | 18 +++++++++++++++++
doc/src/sgml/func.sgml                        |  4 +++-
src/backend/catalog/system_views.sql          | 13 ++++++++++++
src/backend/replication/logical/origin.c      |  5 -----
5 files changed, 63 insertions(+), 6 deletions(-)



Message-ID: <E1jkJYY-00064W-KX@gemulon.postgresql.org>
Permalink:  ../E1jkJYY-00064W-KX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jkJYY-00064W-KX@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: michael@paquier.xyz
  Subject: Re: pgsql: Replace superuser check by ACLs for replication origin functions
  In-Reply-To: <E1jkJYY-00064W-KX@gemulon.postgresql.org>
  References: <E1jkJYY-00064W-KX@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