Re: Patch review for logging hooks (CF 2012-01)

Поиск
Список
Период
Сортировка
От Martin Pihlak
Тема Re: Patch review for logging hooks (CF 2012-01)
Дата
Msg-id 4F1731EF.5020300@gmail.com
обсуждение исходный текст
Ответ на Re: Patch review for logging hooks (CF 2012-01)  (Marti Raudsepp <marti@juffo.org>)
Ответы Re: Patch review for logging hooks (CF 2012-01)  (Marti Raudsepp <marti@juffo.org>)
Re: Patch review for logging hooks (CF 2012-01)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 01/17/2012 11:40 PM, Marti Raudsepp wrote:
> It seems you missed a comment, that the current implementation is also
> affected by client_min_messages. I think that being affected by
> client-specific settings is surprising. I would put the
> if(emit_log_hook) inside the existing if(edata->output_to_server)
> condition. Unless you have some reason to do it this way?
>

I have no strong feelings about this -- if the behaviour seems
surprising, lets remove it. We need to keep the "if" separate
though -- the hook might want to omit the message from server
log so the "output_to_server" needs to be rechecked.

Updated patch attached.

regards,
Martin


Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Command Triggers
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: Vacuum rate limit in KBps