Re: verbose mode for pg_input_error_message?

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: verbose mode for pg_input_error_message?
Дата
Msg-id 20230225232919.GA1026327@nathanxps13
обсуждение исходный текст
Ответ на Re: verbose mode for pg_input_error_message?  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: verbose mode for pg_input_error_message?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sat, Feb 25, 2023 at 01:39:21PM +0900, Michael Paquier wrote:
> pg_input_error_message() does not strike me as a good function name,
> though, because it now returns much more than an error message.
> Hence, couldn't something like pg_input_error() be better, because
> more generic?

I personally think the existing name is fine.  It returns the error
message, which includes the primary, detail, and hint messages.  Also, I'm
not sure that pg_input_error() is descriptive enough.  That being said, I'm
happy to run the sed command to change the name to whatever folks think is
best.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: windows/meson cfbot warnings
Следующее
От: Tom Lane
Дата:
Сообщение: Re: verbose mode for pg_input_error_message?