Re: Export log_line_prefix(); useful for emit_log_hook.
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Michael Paquier <michael@paquier.xyz>, Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@postgresql.org
Date: 2022-07-04T20:24:36Z
Lists: pgsql-hackers
Attachments
- v2-0001-Provide-log_status_format-useful-for-an-emit_log_hoo.patch (text/x-patch) patch v2-0001
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
Commits
-
Provide log_status_format(), useful for an emit_log_hook.
- b40baa96a7ad 16.0 landed