Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3t7Y-00018Y-Hj for pgsql-general@arkaria.postgresql.org; Tue, 18 Feb 2020 03:00:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3t7X-00060v-Cn for pgsql-general@arkaria.postgresql.org; Tue, 18 Feb 2020 03:00:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3p9h-0008Bt-Od for pgsql-general@lists.postgresql.org; Mon, 17 Feb 2020 22:46:21 +0000 Received: from mailout.easydns.com ([64.68.202.10]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3p9a-0003i6-Rq for pgsql-general@postgresql.org; Mon, 17 Feb 2020 22:46:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easydns.com (Postfix) with ESMTP id F055DA0A24 for ; Mon, 17 Feb 2020 22:46:11 +0000 (UTC) Received: from mailout.easydns.com ([127.0.0.1]) by localhost (emo13-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TVCTJt1V1P8v for ; Mon, 17 Feb 2020 22:46:11 +0000 (UTC) Received: from neddie.bloodnok.com (107-190-22-212.cpe.teksavvy.com [107.190.22.212]) by mailout.easydns.com (Postfix) with ESMTPA id CDBD79FED3 for ; Mon, 17 Feb 2020 22:46:11 +0000 (UTC) Received: by neddie.bloodnok.com (Postfix, from userid 110) id D18443C5DC7; Mon, 17 Feb 2020 14:46:10 -0800 (PST) Received: from blodnok.com (major.bloodnok.com [192.168.2.99]) by neddie.bloodnok.com (Postfix) with ESMTP id B9FBF3C5DC4 for ; Mon, 17 Feb 2020 14:46:08 -0800 (PST) Received: by blodnok.com (Postfix, from userid 1001) id BA9F2655FD; Mon, 17 Feb 2020 14:46:08 -0800 (PST) Message-ID: <1581979568.18009.18.camel@bloodnok.com> Subject: policies and extensions From: Marc Munro To: pgsql-general@postgresql.org Date: Mon, 17 Feb 2020 14:46:08 -0800 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.22.6-1+deb9u2 Mime-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I tried to define a policy within an extension but the policy does not seem to belong to the extension. Is this the way it is supposed to be? This is postgres 9.5.21 Here is the relevant code from the extension: create table rls2 ( =C2=A0 username text not null, =C2=A0 details=C2=A0=C2=A0text not null ); create policy only_owner on rls2 =C2=A0 for all =C2=A0 to session_user =C2=A0 using (username =3D user); The table, as expected, depends on the extension but the policy does not (determined by querying pg_depend). Am I missing something special about policies or is this an oversight? __ Marc