Re: RLS policy dump/restore failure due to elided type-casts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karl Czajkowski <karlcz(at)isi(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: RLS policy dump/restore failure due to elided type-casts
Date: 2016-04-21 01:17:20
Message-ID: 18967.1461201440@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karl Czajkowski <karlcz(at)isi(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message david 2016-04-21 01:24:03 Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?
Previous Message David G. Johnston 2016-04-21 01:05:49 Re: RLS policy dump/restore failure due to elided type-casts