Re: [proposal] Add an option for returning SQLSTATE in psql error message
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [proposal] Add an option for returning SQLSTATE in psql error message |
| Дата | |
| Msg-id | 2853.1553268969@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [proposal] Add an option for returning SQLSTATE in psql errormessage (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> But now that I read the patch again, I'm not sure why this needs to
> touch libpq. The formatting of error messages in psql should be handled
> in psql.
Maybe in an ideal world that'd be the case, but psql has always just
depended on PQerrorMessage(). I don't think this patch should be
tasked with changing that. I'm not even sure that doing so would be
a good idea: I think the idea there is that whatever we believe is a
nice error-reporting option for psql ought to be easily available to
other libpq clients too.
(Note: I haven't read the patch and don't mean to be saying that it's
necessarily OK. But I'm fine with the idea that something like this
involves touching libpq more than psql.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера