Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3kn8-0001Wa-K2 for pgsql-general@arkaria.postgresql.org; Thu, 06 Aug 2020 18:39:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k3kn7-0006DH-Jf for pgsql-general@arkaria.postgresql.org; Thu, 06 Aug 2020 18:39:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3kn7-0006DA-C3 for pgsql-general@lists.postgresql.org; Thu, 06 Aug 2020 18:39:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3kn5-0003iQ-AT for pgsql-general@lists.postgresql.org; Thu, 06 Aug 2020 18:39:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 076IcwjE2637376; Thu, 6 Aug 2020 14:38:58 -0400 From: Tom Lane To: Scott Ribe cc: PostgreSQL General Subject: Re: privileges oddity In-reply-to: References: <2636627.1596738120@sss.pgh.pa.us> Comments: In-reply-to Scott Ribe message dated "Thu, 06 Aug 2020 12:36:41 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2637374.1596739138.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 06 Aug 2020 14:38:58 -0400 Message-ID: <2637375.1596739138@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Scott Ribe writes: > On Aug 6, 2020, at 12:22 PM, Tom Lane 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 looku= p 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