pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_createsubscriber: Introduce module-specific logging functions
Date: Mon, 23 Mar 2026 03:59:05 +0000
Message-ID: <E1w4WRU-0011sZ-2I@gemulon.postgresql.org> (raw)

pg_createsubscriber: Introduce module-specific logging functions.

Replace generic pg_log_* calls with report_createsub_log() and
report_createsub_fatal(). This refactor provides the necessary
infrastructure to support logging to external files via the -l option.

These new functions enable the utility to route messages to both the
terminal and a log file based on the logging configuration and verbosity
levels provided by the user.

Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Author: Gyan Sreejith <gyan.sreejith@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAEqnbaUthOQARV1dscGvB_EsqC-YfxiM6rWkVDHc+G+f4oSUHw@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/bin/pg_basebackup/pg_createsubscriber.c | 749 ++++++++++++++++++----------
1 file changed, 477 insertions(+), 272 deletions(-)



Message-ID: <E1w4WRU-0011sZ-2I@gemulon.postgresql.org>
Permalink:  ../E1w4WRU-0011sZ-2I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w4WRU-0011sZ-2I@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_createsubscriber: Introduce module-specific logging functions
  In-Reply-To: <E1w4WRU-0011sZ-2I@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