mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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
This commit is contained in:
@ -24614,7 +24614,9 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
|
||||
<xref linkend="streaming-replication-slots"/>, and
|
||||
<xref linkend="replication-origins"/>
|
||||
for information about the underlying features.
|
||||
Use of functions for replication origin is restricted to superusers.
|
||||
Use of functions for replication origin is only allowed to the
|
||||
superuser by default, but may be allowed to other users by using the
|
||||
<literal>GRANT</literal> command.
|
||||
Use of functions for replication slots is restricted to superusers
|
||||
and users having <literal>REPLICATION</literal> privilege.
|
||||
</para>
|
||||
|
Reference in New Issue
Block a user