Re: Add SHELL_EXIT_CODE to psql

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Cc: vignesh C <vignesh21(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add SHELL_EXIT_CODE to psql
Date: 2023-01-23 19:53:27
Message-ID: CA+TgmoYndoKMNvPM_gY44EZ4=xzYDPZW-OZx8zGOCu-jWdKd3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 23, 2023 at 1:59 PM Corey Huinker <corey(dot)huinker(at)gmail(dot)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 to true 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Jacobson 2023-01-23 20:00:14 Re: Non-decimal integer literals
Previous Message Robert Haas 2023-01-23 19:52:25 Re: Non-superuser subscription owners