Add macro for customizing an archiving WARNING message.
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/basic_archive/basic_archive.c | modified | +6 −1 |
| doc/src/sgml/archive-modules.sgml | modified | +12 −0 |
| src/backend/archive/shell_archive.c | modified | +6 −1 |
| src/backend/postmaster/pgarch.c | modified | +7 −1 |
| src/include/archive/archive_module.h | modified | +8 −0 |
Documentation touched
Discussion
- Improve the log message output of basic_archive when basic_archive.archive_directory parameter is not set 22 messages · 2023-09-15 → 2024-03-04