Re: [v9.3] Row-Level Security

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: [v9.3] Row-Level Security
Дата
Msg-id 113BF38F-43EC-46D7-93AF-423BEC77B025@phlo.org
обсуждение исходный текст
Ответ на Re: [v9.3] Row-Level Security  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [v9.3] Row-Level Security  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jun28, 2012, at 17:29 , Tom Lane wrote:
> Kohei KaiGai <kaigai@kaigai.gr.jp> writes:
>> 2012/6/27 Florian Pflug <fgp@phlo.org>:
>>> Hm, what happens if a SECURITY DEFINER functions returns a refcursor?
> 
>> My impression is, here is no matter even if SECURITY DEFINER function
>> returns refcursor.
> 
> I think Florian has a point: it *should* work, but *will* it?
> 
> I believe it works today, because the executor only applies permissions
> checks during query startup.  So those checks are executed while still
> within the SECURITY DEFINER context, and should behave as expected.
> Subsequently, the cursor portal is returned to caller and caller can
> execute it to completion, no problem.

Don't we (sometimes?) defer query startup to the first time FETCH is
called?

best regards,
Florian Pflug



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [v9.3] Row-Level Security
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Covering Indexes