Re: Add SHELL_EXIT_CODE to psql

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Add SHELL_EXIT_CODE to psql
Дата
Msg-id CA+TgmoYndoKMNvPM_gY44EZ4=xzYDPZW-OZx8zGOCu-jWdKd3g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add SHELL_EXIT_CODE to psql  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: Add SHELL_EXIT_CODE to psql  (Corey Huinker <corey.huinker@gmail.com>)
Список pgsql-hackers
On Mon, Jan 23, 2023 at 1:59 PM Corey Huinker <corey.huinker@gmail.com> wrote:
> SHELL_ERROR is helpful in that it is a ready-made boolean that works for \if tests in the same way that ERROR is set
totrue any time SQLSTATE is nonzero. We don't yet have inline expressions for \if so the ready-made boolean is a
convenience.

Oh, that seems a bit sad, but I guess it makes sense.

> Or are you suggesting that I should have just set ERROR itself rather than create SHELL_ERROR?

No, I wasn't suggesting that.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Non-superuser subscription owners
Следующее
От: "Joel Jacobson"
Дата:
Сообщение: Re: Non-decimal integer literals