From 45b9002e5b5c1e1c6f9d6a84f26f2c731a484ef5 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 24 Oct 2019 16:52:59 +0900 Subject: [PATCH] Modify function "is_replication_role()" to reference "pg_roles" "pg_authid" is restricted to superusers. --- dbutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbutils.c b/dbutils.c index 01d30381..3037b395 100644 --- a/dbutils.c +++ b/dbutils.c @@ -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)