Re: [proposal] Add an option for returning SQLSTATE in psql error message

Поиск
Список
Период
Сортировка
От didier
Тема Re: [proposal] Add an option for returning SQLSTATE in psql error message
Дата
Msg-id CAJRYxuJqKv7SmcOcXGhYv6WGQEcBSU=DJvNx8SCt_nYv+sZaQQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [proposal] Add an option for returning SQLSTATE in psql error message  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: [proposal] Add an option for returning SQLSTATE in psql error message  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
Attached a POC adding a new variable ECHO_ERROR
\set ECHO_ERROR text|none|psqlstate

On Mon, Dec 3, 2018 at 2:47 AM Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
>
> >>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>
>  Tom> I don't buy that argument. We use psql's normal display in all the
>  Tom> regular regression tests, and it's not a big maintenance problem.
>
> The regular regression tests have the advantage that they don't need to
> work across pg versions.
>
> It is more of a problem for extensions; I just ran into this myself in
> fact, with a test failing because "invalid input syntax for integer" got
> changed to "invalid input syntax for type integer".
>
> --
> Andrew (irc:RhodiumToad)

Вложения

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

Предыдущее
От: Charles Leifer
Дата:
Сообщение: JSON Merge-Patch
Следующее
От: David Steele
Дата:
Сообщение: Re: Commitfest 2018-11