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 1k46Dr-0005wt-Sq for pgsql-general@arkaria.postgresql.org; Fri, 07 Aug 2020 17:32:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k46Dp-0000kr-Hf for pgsql-general@arkaria.postgresql.org; Fri, 07 Aug 2020 17:32: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 1k46Dp-0000kj-3Z for pgsql-general@lists.postgresql.org; Fri, 07 Aug 2020 17:32:01 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k46Dl-0006vt-Kn for pgsql-general@lists.postgresql.org; Fri, 07 Aug 2020 17:31:59 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 07EB921066; Fri, 7 Aug 2020 17:31:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iUO7b8sZD3g9; Fri, 7 Aug 2020 17:31:54 +0000 (UTC) Received: from shr-macbook-pro.local (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 528E820A96; Fri, 7 Aug 2020 17:31:52 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: privileges oddity From: Scott Ribe In-Reply-To: <75f2f28c-9121-c3d0-0c9a-f9b16ef337fb@aklaver.com> Date: Fri, 7 Aug 2020 11:31:52 -0600 Cc: PostgreSQL General Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200806185329.GC29590@tamriel.snowman.net> <75f2f28c-9121-c3d0-0c9a-f9b16ef337fb@aklaver.com> To: Adrian Klaver X-Mailer: Apple Mail (2.3608.120.23.2.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >=20 > What happens if you do?: >=20 > select has_schema_privilege('akanzler', 'zoewang', 'usage'); risk_oltp_prod=3D# select has_schema_privilege('akanzler', 'zoewang', = 'usage'); has_schema_privilege ---------------------- t (1 row) > In psql what does >=20 > \ddp >=20 > show? =EF=BB=BFrisk_oltp_prod=3D# \ddp Default access privileges Owner | Schema | Type | Access privileges = ----------------+----------+-------+--------------------------------------= -- ... srv_risk | zoewang | table | akanzler=3Dr/srv_risk = + | | | srv_risk=3DarwdD/srv_risk ... (40 rows) Wondering if there's a code path somewhere that lets the default take = precedence???=