policies and extensions

From: Marc Munro <marc(at)bloodnok(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: policies and extensions
Date: 2020-02-17 22:46:08
Message-ID: 1581979568.18009.18.camel@bloodnok.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 (
  username text not null,
  details  text not null
);

create policy only_owner on rls2
  for all
  to session_user
  using (username = 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-02-18 03:28:25 Re: policies and extensions
Previous Message Jean-Marc Lessard 2020-02-17 22:07:24 pgstattuple extension - Can pgstattuple_approx support toast tables?