diff options
| author | Fujii Masao | 2025-10-22 11:09:43 +0000 |
|---|---|---|
| committer | Fujii Masao | 2025-10-22 11:09:43 +0000 |
| commit | f33e60a53a9ca89b5078df49416acae20affe1f5 (patch) | |
| tree | f02a41d441995fe6271323877e0a3ce30aa12b8e /.github | |
| parent | 2d7b247cb414ccbc052c485fd82a841477a7e1ff (diff) | |
Make invalid primary_slot_name follow standard GUC error reporting.
Previously, if primary_slot_name was set to an invalid slot name and
the configuration file was reloaded, both the postmaster and all other
backend processes reported a WARNING. With many processes running,
this could produce a flood of duplicate messages. The problem was that
the GUC check hook for primary_slot_name reported errors at WARNING
level via ereport().
This commit changes the check hook to use GUC_check_errdetail() and
GUC_check_errhint() for error reporting. As with other GUC parameters,
this causes non-postmaster processes to log the message at DEBUG3,
so by default, only the postmaster's message appears in the log file.
Backpatch to all supported versions.
Author: Fujii Masao <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Reviewed-by: Amit Kapila <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Reviewed-by: Hayato Kuroda <[email protected]>
Discussion: https://postgr.es/m/CAHGQGwFud-cvthCTfusBfKHBS6Jj6kdAPTdLWKvP2qjUX6L_wA@mail.gmail.com
Backpatch-through: 13
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions
