monitor admin用户查询视图pg_prepared_statements报错问题修复
This commit is contained in:
@ -1558,7 +1558,7 @@ Datum pg_prepared_statement(PG_FUNCTION_ARGS)
|
||||
|
||||
Datum pg_prepared_statement_global(PG_FUNCTION_ARGS)
|
||||
{
|
||||
if (!superuser()) {
|
||||
if (!superuser() && !isMonitoradmin(GetUserId())) {
|
||||
aclcheck_error(ACLCHECK_NO_PRIV, ACL_KIND_PROC, "pg_prepared_statements");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user