pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add macro for customizing an archiving WARNING message.
Date: Mon, 04 Mar 2024 21:43:58 +0000
Message-ID: <E1rhG6I-0025Zc-Je@gemulon.postgresql.org> (raw)

Add macro for customizing an archiving WARNING message.

Presently, if an archive module's check_configured_cb callback
returns false, a generic WARNING message is emitted, which
unfortunately provides no actionable details about the reason why
the module is not configured.  This commit introduces a macro that
archive module authors can use to add a DETAIL line to this WARNING
message.

Co-authored-by: Tung Nguyen
Reviewed-by: Daniel Gustafsson, Álvaro Herrera
Discussion: https://postgr.es/m/4109578306242a7cd5661171647e11b2%40oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c29e7fc95b24f5ccfec0d2db458d2130606f446

Modified Files
--------------
contrib/basic_archive/basic_archive.c |  7 ++++++-
doc/src/sgml/archive-modules.sgml     | 12 ++++++++++++
src/backend/archive/shell_archive.c   |  7 ++++++-
src/backend/postmaster/pgarch.c       |  8 +++++++-
src/include/archive/archive_module.h  |  8 ++++++++
5 files changed, 39 insertions(+), 3 deletions(-)



Message-ID: <E1rhG6I-0025Zc-Je@gemulon.postgresql.org>
Permalink:  ../E1rhG6I-0025Zc-Je@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rhG6I-0025Zc-Je@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: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add macro for customizing an archiving WARNING message.
  In-Reply-To: <E1rhG6I-0025Zc-Je@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