pgsql: Provide log_status_format(), useful for an emit_log_hook.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Provide log_status_format(), useful for an emit_log_hook.
Date: 2022-07-11 19:29:44
Message-ID: E1oAz6F-002K1d-D8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Provide log_status_format(), useful for an emit_log_hook.

Refactor so that log_line_prefix() is a thin wrapper over a new
function log_status_format(), and move the implementation to the
latter. Export log_status_format() so that it can be used by an
emit_log_hook.

Discussion: https://postgr.es/m/39c8197652f4d3050aedafae79fa5af31096505f.camel%40j-davis.com
Reviewed-by: Michael Paquier, Alvaro Herrera

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b40baa96a7ad789718dcf59b1dd73bae15c3a7e1

Modified Files
--------------
src/backend/utils/error/elog.c | 15 ++++++++++++---
src/include/utils/elog.h | 4 ++++
2 files changed, 16 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-07-11 22:15:17 Re: pgsql: Build de-escaped JSON strings in larger chunks during lexing
Previous Message Bruce Momjian 2022-07-11 18:21:50 pgsql: relnotes: updates "cumulative statistics system" mention