pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Munro <marc@bloodnok.com>
Cc: pgsql-general@postgresql.org
Subject: Re: policies and extensions
Date: Mon, 17 Feb 2020 22:48:27 -0500
Message-ID: <679.1581997707@sss.pgh.pa.us> (raw)
In-Reply-To: <1581979568.18009.18.camel@bloodnok.com>
References: <1581979568.18009.18.camel@bloodnok.com>

Marc Munro <marc@bloodnok.com> writes:
> 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?

Yeah, I would expect that.

https://www.postgresql.org/docs/current/extend-extensions.html

says:

    The kinds of SQL objects that can be members of an extension are shown
    in the description of ALTER EXTENSION.  ...
    Also notice that while a table can be a member of
    an extension, its subsidiary objects such as indexes are not directly
    considered members of the extension.  ...

An RLS policy is a table "subsidiary object" so it only depends indirectly
on the extension that owns the table.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <679.1581997707@sss.pgh.pa.us>
Permalink:  ../679.1581997707@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/679.1581997707@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, marc@bloodnok.com
  Subject: Re: policies and extensions
  In-Reply-To: <679.1581997707@sss.pgh.pa.us>
  References: <1581979568.18009.18.camel@bloodnok.com> <679.1581997707@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