pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Integrate superuser check into has_rolreplication()
Date: Thu, 16 Mar 2023 15:13:26 +0000
Message-ID: <E1pcpIE-003peV-DQ@gemulon.postgresql.org> (raw)

Integrate superuser check into has_rolreplication()

This makes it consistent with similar functions like
has_createrole_privilege() and allows removing some explicit superuser
checks.

Author: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://www.postgresql.org/message-id/20230310000313.GA3992372%40nathanxps13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/442f8700656bb5ce525d352241a17bbab14193c7

Modified Files
--------------
src/backend/replication/slot.c    | 2 +-
src/backend/utils/init/miscinit.c | 4 ++++
src/backend/utils/init/postinit.c | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)



Message-ID: <E1pcpIE-003peV-DQ@gemulon.postgresql.org>
Permalink:  ../E1pcpIE-003peV-DQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pcpIE-003peV-DQ@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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Integrate superuser check into has_rolreplication()
  In-Reply-To: <E1pcpIE-003peV-DQ@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