Re: [sepgsql 3/3] Add db_procedure:execute permission checks

Поиск
Список
Период
Сортировка
От Kohei KaiGai
Тема Re: [sepgsql 3/3] Add db_procedure:execute permission checks
Дата
Msg-id CADyhKSXMTqndbcEuSXspyJdirFL36DHYGaBowUfcrPRMgVJj8Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [sepgsql 3/3] Add db_procedure:execute permission checks  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
2013/4/11 Alvaro Herrera <alvherre@2ndquadrant.com>:
> Kohei KaiGai wrote:
>> This patch adds sepgsql support for permission checks almost
>> equivalent to the existing FUNCTION EXECUTE privilege.
>
> While skimming this patch I noticed that you're using
> getObjectDescription() as the "audit_name" of objects.  This may be a
> bit unstable, for example consider that it's translated if lc_messages
> is set to something other than english.  I would suggest that the object
> identity as introduced by commit f8348ea32ec8 is a better choice for
> this.
>
Thanks for your suggestion.

I tried to replace getObjectDescription() by getObjectIdentity() almost
mechanically, even though I had to put special handling around
OAT_POST_CREATE hook, as existing code doing, because
SnapshotNow cannot reference the new object just after creation.

Even though it massively affects regression test results, my preference
is the format using getObjectIdentity(), because audit log is not assumed
being read by human eyes usually. Thus, newer one is kindness style
for script developers to put just an identifier of object into "name" field
of audit log, without anything else.

Best regards,
--
KaiGai Kohei <kaigai@kaigai.gr.jp>

Вложения

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

Предыдущее
От: Ants Aasma
Дата:
Сообщение: Re: Nearing beta?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Nearing beta?