Would someone explain to me why assign_recovery_target_lsn and related GUC
assign hooks throw errors, rather than doing so in the associated check
hooks? An assign hook is not supposed to throw an error. Full stop, no
exceptions. We wouldn't bother to separate those hooks otherwise.
regards, tom lane
On 2020-10-12 18:00, Tom Lane wrote: > Would someone explain to me why assign_recovery_target_lsn and related GUC > assign hooks throw errors, rather than doing so in the associated check > hooks? An assign hook is not supposed to throw an error. Full stop, no > exceptions. We wouldn't bother to separate those hooks otherwise. That code is checking whether more than one recovery target GUC has been set. I don't think the check hook sees the right state to be able to check that. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера