Re: RLS policy dump/restore failure due to elided type-casts - Mailing list pgsql-general

From Tom Lane
Subject Re: RLS policy dump/restore failure due to elided type-casts
Date
Msg-id 24234.1461205047@sss.pgh.pa.us
Whole thread Raw
In response to Re: RLS policy dump/restore failure due to elided type-casts  (Karl Czajkowski <karlcz@isi.edu>)
List pgsql-general
Karl Czajkowski <karlcz@isi.edu> writes:
> On Apr 20, Tom Lane modulated:
>> 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.

> Going out of my way to complicate matters is my specialty. :-)

;-).  Nonetheless, I agree this is a bug in ruleutils -- it should be
able to emit the expression in a way that will re-parse the same way.
Will look into fixing it.

            regards, tom lane


pgsql-general by date:

Previous
From: Karl Czajkowski
Date:
Subject: Re: RLS policy dump/restore failure due to elided type-casts
Next
From:
Date:
Subject: Is it possible to call Postgres directly?