From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: privileges oddity
Date: Thu, 6 Aug 2020 12:36:41 -0600
Message-ID: <F0F99CF5-057D-4024-A89F-69F3815AE915@elevated-dev.com> (raw)
In-Reply-To: <2636627.1596738120@sss.pgh.pa.us>
References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com>
<2636627.1596738120@sss.pgh.pa.us>
On Aug 6, 2020, at 12:22 PM, Tom Lane <tgl@sss.pgh.pa.us> 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.
Hmm, I should check both direct to PG and through PG bouncer--even though he is getting connected as the correct user, per PG's error in the log.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: scott_ribe@elevated-dev.com, tgl@sss.pgh.pa.us
Subject: Re: privileges oddity
In-Reply-To: <F0F99CF5-057D-4024-A89F-69F3815AE915@elevated-dev.com>
References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com> <2636627.1596738120@sss.pgh.pa.us> <F0F99CF5-057D-4024-A89F-69F3815AE915@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox