From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Export log_line_prefix(); useful for emit_log_hook. |
Date: | 2022-07-04 20:24:36 |
Message-ID: | 6afdaff716ea203519076dfd935d86af269acc2c.camel@j-davis.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
v2-0001-Provide-log_status_format-useful-for-an-emit_log_hoo.patch | text/x-patch | 2.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2022-07-04 20:32:22 | Re: Lazy JIT IR code generation to increase JIT speed with partitions |
Previous Message | Andres Freund | 2022-07-04 20:23:47 | Re: Lazy JIT IR code generation to increase JIT speed with partitions |