Re: "plan should not reference subplan's variable" when using row level security

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: "plan should not reference subplan's variable" when using row level security
Дата
Msg-id 20160224202751.GI3127@tamriel.snowman.net
обсуждение исходный текст
Ответ на "plan should not reference subplan's variable" when using row level security  (Adam Guthrie <asguthrie@gmail.com>)
Ответы Re: "plan should not reference subplan's variable" when using row level security
Список pgsql-general
Adam,

* Adam Guthrie (asguthrie@gmail.com) wrote:
> psql:/tmp/test.sql:26: ERROR:  plan should not reference subplan's variable
>
> Is this a bug or am I doing something wrong?

Yeah, looks like a bug to me.  My gut reaction is that we're pulling up
a subquery in a way that isn't possible and that plan shouldn't be
getting built/considered.

As a work-around, until we fix it, you could create an sql function to
check for the existance of the id in 'a' and use that in the policy
definition.

Thanks!

Stephen

Вложения

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: "plan should not reference subplan's variable" when using row level security
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: "plan should not reference subplan's variable" when using row level security