Re: Review of Row Level Security

Поиск
Список
Период
Сортировка
От Kohei KaiGai
Тема Re: Review of Row Level Security
Дата
Msg-id CADyhKSUCmMeTFrJjMXxvXKBRbCR1Q5oiaacH61w87Oxho_DZHw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Review of Row Level Security  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Review of Row Level Security
Список pgsql-hackers
2012/12/7 Simon Riggs <simon@2ndquadrant.com>:
> On 5 December 2012 11:16, Kohei KaiGai <kaigai@kaigai.gr.jp> wrote:
>
>>> * TRUNCATE works, and allows you to remove all rows of a table, even
>>> ones you can't see to run a DELETE on. Er...
>>>
>> It was my oversight. My preference is to rewrite TRUNCATE command
>> with DELETE statement in case when row-security policy is active on
>> the target table.
>> In this case, a NOTICE message may be helpful for users not to assume
>> the table is always empty after the command.
>
> I think the default must be to throw an ERROR, since part of the
> contract with TRUNCATE is that it is fast and removes storage.
>
OK. Does the default imply you are suggesting configurable
behavior using GUC or something?
I think both of the behaviors are reasonable from security point
of view, as long as user cannot remove unprivileged rows.

Thanks,
-- 
KaiGai Kohei <kaigai@kaigai.gr.jp>



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

Предыдущее
От: Amit kapila
Дата:
Сообщение: Re: Review: Patch to compute Max LSN of Data Pages
Следующее
От: Kohei KaiGai
Дата:
Сообщение: Re: Review of Row Level Security