Re: policies and extensions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Munro <marc(at)bloodnok(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: policies and extensions
Date: 2020-02-18 03:48:27
Message-ID: 679.1581997707@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marc Munro <marc(at)bloodnok(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ranjan Gajare 2020-02-18 09:46:02 Logical Replication ERROR reporting issue
Previous Message Adrian Klaver 2020-02-18 03:28:25 Re: policies and extensions