pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Provide log_status_format(), useful for an emit_log_hook.
Date: Mon, 11 Jul 2022 19:29:44 +0000
Message-ID: <E1oAz6F-002K1d-D8@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1oAz6F-002K1d-D8@gemulon.postgresql.org>
Permalink:  ../E1oAz6F-002K1d-D8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oAz6F-002K1d-D8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Provide log_status_format(), useful for an emit_log_hook.
  In-Reply-To: <E1oAz6F-002K1d-D8@gemulon.postgresql.org>
  References: <E1oAz6F-002K1d-D8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox