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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RLS policy dump/restore failure due to elided type-casts
Дата
Msg-id 18967.1461201440@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RLS policy dump/restore failure due to elided type-casts  (Karl Czajkowski <karlcz@isi.edu>)
Ответы Re: RLS policy dump/restore failure due to elided type-casts  (Karl Czajkowski <karlcz@isi.edu>)
Список pgsql-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


В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: RLS policy dump/restore failure due to elided type-casts
Следующее
От:
Дата:
Сообщение: Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?