Scott Ribe <scott_ribe@xxxxxxxxxxxxxxxx> writes: > On Aug 6, 2020, at 12:22 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote: >> Gonna need more context. The session-level user seems to have the >> right privileges, but maybe something is happening inside a >> security-definer function that doesn't have privileges? > The only security definer function in the db is a simple pg_shadow lookup used by pgbouncer. Hmph. Any chance of getting a stack trace from the point of the error? Also, which PG version is this? regards, tom lane