Re: Export log_line_prefix(); useful for emit_log_hook. - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Export log_line_prefix(); useful for emit_log_hook.
Date
Msg-id 6afdaff716ea203519076dfd935d86af269acc2c.camel@j-davis.com
Whole thread Raw
In response to Re: Export log_line_prefix(); useful for emit_log_hook.  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Mon, 2022-07-04 at 15:54 +0900, Michael Paquier wrote:
> On Wed, Jun 29, 2022 at 03:09:42PM +0200, Alvaro Herrera wrote:
> > Hmm, maybe your hypothetical book would prefer to use a different
> > setting for log line prefix than Log_line_prefix, so it would make
> > sense
> > to pass the format string as a parameter to the function instead of
> > relying on the GUC global.

That is nicer, attached.

I also renamed the function log_status_format(), and made
log_line_prefix() a thin wrapper over that. I think that's less
confusing.

Regards,
    Jeff Davis


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Lazy JIT IR code generation to increase JIT speed with partitions
Next
From: Andres Freund
Date:
Subject: Re: Lazy JIT IR code generation to increase JIT speed with partitions