Modify function "is_replication_role()" to reference "pg_roles"

"pg_authid" is restricted to superusers.
This commit is contained in:
Ian Barwick
2019-10-24 16:52:59 +09:00
parent 52f9cd3bae
commit 45b9002e5b

View File

@@ -379,7 +379,7 @@ is_replication_role(PGconn *conn, char *rolname)
appendPQExpBufferStr(&query,
" SELECT rolreplication "
" FROM pg_catalog.pg_authid "
" FROM pg_catalog.pg_roles "
" WHERE rolname = ");
if (rolname != NULL)