Integrate superuser check into has_rolreplication()

Peter Eisentraut <peter@eisentraut.org>

Commit: 442f8700656bb5ce525d352241a17bbab14193c7
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-03-16T14:43:33Z
Releases: 16.0
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

Files

Discussion