Azure Flexible Postgres: Configuring auth_query refering to pg_shadow table in pgbouncer throws "permission denied for table pg_shadow"

Channabasawa Nagur 0 Reputation points
2023-06-23T11:36:23.5+00:00

Hi,

I am configuring auth_query for pgbouncer authentication.

auth_query is in turn referring to pg_shadow running below query

Select usename, 
  passwd 
from 
  pg_shadow 


this throws error: "permission denied for view pg_shadow"

is there a way to give access to this table for my user?

Azure Database for PostgreSQL
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.