mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
Modify function "is_replication_role()" to reference "pg_roles"
"pg_authid" is restricted to superusers.
This commit is contained in:
@@ -379,7 +379,7 @@ is_replication_role(PGconn *conn, char *rolname)
|
|||||||
|
|
||||||
appendPQExpBufferStr(&query,
|
appendPQExpBufferStr(&query,
|
||||||
" SELECT rolreplication "
|
" SELECT rolreplication "
|
||||||
" FROM pg_catalog.pg_authid "
|
" FROM pg_catalog.pg_roles "
|
||||||
" WHERE rolname = ");
|
" WHERE rolname = ");
|
||||||
|
|
||||||
if (rolname != NULL)
|
if (rolname != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user