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 1k3l1i-00026I-Op for pgsql-general@arkaria.postgresql.org; Thu, 06 Aug 2020 18:54:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k3l1C-0003yS-9c for pgsql-general@arkaria.postgresql.org; Thu, 06 Aug 2020 18:53:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3l1C-0003yG-2C for pgsql-general@lists.postgresql.org; Thu, 06 Aug 2020 18:53:34 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k3l19-0004n5-Qs for pgsql-general@lists.postgresql.org; Thu, 06 Aug 2020 18:53:33 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2C7AA5F79F; Thu, 6 Aug 2020 14:53:30 -0400 (EDT) Date: Thu, 6 Aug 2020 14:53:30 -0400 From: Stephen Frost To: Scott Ribe Cc: PostgreSQL General Subject: Re: privileges oddity Message-ID: <20200806185329.GC29590@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TiqCXmo5T1hvSQQg" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --TiqCXmo5T1hvSQQg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Scott Ribe (scott_ribe@elevated-dev.com) wrote: > when user akanzler tries to run query "SELECT * FROM zoewang.sometable...= ", it triggers this error: >=20 > 2020-08-06 17:27:27.664 UTC [15914]: [3] user=3Dakanzler,db=3Drisk_oltp_p= rod,app=3D[unknown],client=3D10.8.170.24: ERROR: permission denied for sch= ema zoewang at character 15 >=20 > --- YET --- >=20 > risk_oltp_prod=3D# \dn+ zoewang > List of schemas > Name | Owner | Access privileges | Description > ---------+----------+------------------------+------------- > zoewang | srv_risk | srv_risk=3DUC/srv_risk +| > | | akanzler=3DUC/srv_risk +| > | | srv_risk_ro=3DU/srv_risk | > (1 row) >=20 > HUH? (And the user also has all privs on all the tables in the schema...) Are you 110% sure that you're actually connecting to the same instance in both cases (I'd say database too, but hopefully psql isn't lying to you about that on your prompt, but maybe double-check anyway...). Have you re-tried from the app (maybe someone fixed it in the meantime)? Thanks, Stephen --TiqCXmo5T1hvSQQg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfLFGpAAoJEO1sijiDR2RVSTgQAKO0H8qem5ss9SjRHmjXA1qX LvFnkDgEqffjXiOPWZJO6P9Ga91Zn/dFt/zj292hEWbCLfXakFL/5YrpNtDXgzs7 U/fPrlxaOD4ocNOjIO9Gng9Z7NL9NjG7/E3iwIuBFXPoMc4NkoL1AAf+ki/0cDJ8 Mt3a/R1jZeNoa0GJc7EiI+9J9hm2NynsPbxQuahRdrhju/dpqN+GKlnU6XcGaO6/ Nz+JwK5gUk6GCrA7zGjs0k1pjRH3lfAjqF8kYsp4SS0ss7RvQoyGKa025pmiInGW C4j/GlXQ7qavnDhXQvjyJKxTSsfDcrx6LnQASsxee3uhgus30a7FZpzfs8zEakjo 4iCAKedFn6uvlDUbH4mlZcPm17kWTtSiK1fd8p7au0Wk0mWIwe+3QHnvRWrDt6o6 iWSMnwJ8Qt7tvTXBZtwvyQvalet8AsJx73effb4Niro3ovXh9dKVdixNu7EP1Z4P aBNkIoCdbgXXUvljRMPnFAlSqmJzz4Df2FtWvp+HKqh7bGCM80zX3J9U0Dpri2j6 Bs5DfPdw8MOKTyAIajXHo2V9EGQLJSjjrfbZkLD9eVEMEk+AZ4kzxtnjxjDZBiku ycHvtk8HW+WeiV6/Gi7FrmZ/FLjVTbO5rTvOUK1XFOXl9f3tg/BkHu1dkQNlX/qd 4Oux+RHhguSWXJjWoRWW =1nHA -----END PGP SIGNATURE----- --TiqCXmo5T1hvSQQg--