pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Munro <marc@bloodnok.com>
To: pgsql-general@postgresql.org
Subject: policies and extensions
Date: Mon, 17 Feb 2020 14:46:08 -0800
Message-ID: <1581979568.18009.18.camel@bloodnok.com> (raw)

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





view thread (7+ messages)  latest in thread

Message-ID: <1581979568.18009.18.camel@bloodnok.com>
Permalink:  ../1581979568.18009.18.camel@bloodnok.com/
Also on:    postgresql.org/message-id/1581979568.18009.18.camel@bloodnok.com

 · 

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: marc@bloodnok.com
  Subject: Re: policies and extensions
  In-Reply-To: <1581979568.18009.18.camel@bloodnok.com>
  References: <1581979568.18009.18.camel@bloodnok.com>

* 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