Add macro for customizing an archiving WARNING message.
authorNathan Bossart <nathan@postgresql.org>
Mon, 4 Mar 2024 21:41:42 +0000 (15:41 -0600)
committerNathan Bossart <nathan@postgresql.org>
Mon, 4 Mar 2024 21:41:42 +0000 (15:41 -0600)
commit2c29e7fc95b24f5ccfec0d2db458d2130606f446
tree1d05b2693f525b2203bf6001163f47266b900a27
parente5bc9454e527b1cba97553531d8d4992892fdeef
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
contrib/basic_archive/basic_archive.c
doc/src/sgml/archive-modules.sgml
src/backend/archive/shell_archive.c
src/backend/postmaster/pgarch.c
src/include/archive/archive_module.h