pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: privileges oddity
Date: Thu, 06 Aug 2020 14:22:00 -0400
Message-ID: <2636627.1596738120@sss.pgh.pa.us> (raw)
In-Reply-To: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com>
References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com>

Scott Ribe <scott_ribe@elevated-dev.com> writes:
> when user akanzler tries to run query "SELECT * FROM zoewang.sometable...", it triggers this error:
> 2020-08-06 17:27:27.664 UTC [15914]: [3] user=akanzler,db=risk_oltp_prod,app=[unknown],client=10.8.170.24: ERROR:  permission denied for schema zoewang at character 15

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?

			regards, tom lane





view thread (31+ messages)  latest in thread

Message-ID: <2636627.1596738120@sss.pgh.pa.us>
Permalink:  ../2636627.1596738120@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2636627.1596738120@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, scott_ribe@elevated-dev.com
  Subject: Re: privileges oddity
  In-Reply-To: <2636627.1596738120@sss.pgh.pa.us>
  References: <C2C6B9DD-6EFD-49DA-8673-1BBDA260329D@elevated-dev.com> <2636627.1596738120@sss.pgh.pa.us>

* 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