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(at)gmail(dot)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(-)