Re: security hooks on object creation

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: security hooks on object creation
Дата
Msg-id AANLkTiknboq1Zam462ahBgc697KcdGwbBNnkTT6oezV0@mail.gmail.com
обсуждение исходный текст
Ответ на Re: security hooks on object creation  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Ответы Re: security hooks on object creation  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Список pgsql-hackers
2010/11/12 KaiGai Kohei <kaigai@ak.jp.nec.com>:
> (2010/11/12 19:34), KaiGai Kohei wrote:
>> I revised my patch according to the prior suggestions.
>>
> I'm sorry. I revised my patch, but not attached.
>
> Please see this attached one.

I'm satisfied with this approach, although I intend to change
InvokeObjectAccessHook0 to simply InvokeObjectAccessHook before
committing it; and correct your use of AttributeRelationId to
RelationRelationId for consistency with the rest of the code.  What
I'm not quite sure about is where to put the definitions you've added
to a new file utils/hooks.h; I don't feel that's a very appropriate
location.  It's tempting to put them in utils/acl.h just because this
is vaguely access-control related and that header is already included
in most of the right places, but maybe that's too much of a stretch;
or perhaps catalog/catalog.h, although that doesn't feel quite right
either.  If we are going to add a new header file, I still don't like
utils/hooks.h much - it's considerably more generic than can be
justified by its contents.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Per-column collation
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: Re: SQL/MED estimated time of arrival?