Re: A doubt about a newly added errdetail

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: A doubt about a newly added errdetail
Дата
Msg-id 20220927124249.4zdzzlz6had7k3x2@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: A doubt about a newly added errdetail  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: A doubt about a newly added errdetail
Список pgsql-hackers
While reading this code, I noticed that function expr_allowed_in_node()
has a very strange API: it doesn't have any return convention at all
other than "if we didn't modify errdetail_str then all is good".  I was
tempted to add an "Assert(*errdetail_msg == NULL)" at the start of it,
just to make sure that it is not called if a message is already set.

I think it would be much saner to inline the few lines of that function
in its sole caller, as in the attached.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"E pur si muove" (Galileo Galilei)

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Aleksander Alekseev
Дата:
Сообщение: Re: Adding a clang-format file
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [RFC] building postgres with meson - v13