From 70b842597ce298bf2570640d28793331c8edd6cc Mon Sep 17 00:00:00 2001 From: eelke Date: Sat, 10 Aug 2019 14:18:01 +0200 Subject: [PATCH] Read from pg_roles as only superusers can read pg_authid Contents is same except password is masked. Password does not seem very important to view as it is encrypted anyway. Close #53 --- pglablib/catalog/PgAuthIdContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pglablib/catalog/PgAuthIdContainer.cpp b/pglablib/catalog/PgAuthIdContainer.cpp index 84d72ac..3a9d8e1 100644 --- a/pglablib/catalog/PgAuthIdContainer.cpp +++ b/pglablib/catalog/PgAuthIdContainer.cpp @@ -10,7 +10,7 @@ std::string PgAuthIdContainer::getLoadQuery() const result += ", rolbypassrls"; result += "\n" - "FROM pg_authid"; + "FROM pg_roles"; return result; }