Re: Patch review for logging hooks (CF 2012-01) - Mailing list pgsql-hackers

From Martin Pihlak
Subject Re: Patch review for logging hooks (CF 2012-01)
Date
Msg-id 4F1731EF.5020300@gmail.com
Whole thread Raw
In response to Re: Patch review for logging hooks (CF 2012-01)  (Marti Raudsepp <marti@juffo.org>)
Responses Re: Patch review for logging hooks (CF 2012-01)
Re: Patch review for logging hooks (CF 2012-01)
List 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


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Command Triggers
Next
From: Jim Nasby
Date:
Subject: Re: Vacuum rate limit in KBps