pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Karl Czajkowski <karlcz@isi.edu>
Cc: pgsql-general@postgresql.org
Subject: Re: RLS policy dump/restore failure due to elided type-casts
Date: Wed, 20 Apr 2016 21:17:20 -0400
Message-ID: <18967.1461201440@sss.pgh.pa.us> (raw)
In-Reply-To: <20160421001832.GB7976@moraine.isi.edu>
References: <20160421001832.GB7976@moraine.isi.edu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Karl Czajkowski <karlcz@isi.edu> writes:
>   CREATE POLICY delete_stuff ON stuff 
>   FOR DELETE USING ('example attribute value' = ANY ( ((SELECT current_attributes()))::text[] ));

Just out of curiosity, why are you doing it like that, and not simply

USING ('example attribute value' = ANY (current_attributes()))

It seems like you're going out of your way to complicate matters.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (9+ messages)  latest in thread

Message-ID: <18967.1461201440@sss.pgh.pa.us>
Permalink:  ../18967.1461201440@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18967.1461201440@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, karlcz@isi.edu
  Subject: Re: RLS policy dump/restore failure due to elided type-casts
  In-Reply-To: <18967.1461201440@sss.pgh.pa.us>
  References: <20160421001832.GB7976@moraine.isi.edu> <18967.1461201440@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