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-20 13:54:27
Message-ID: CA+TgmoaEDxmQxbYxDBZkrkxJjb3Ni8pOWVf3Y5n5vzTVO+EKpw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jan 4, 2023 at 2:09 AM Corey Huinker <corey(dot)huinker(at)gmail(dot)com> wrote:
> 2. There are now two psql variables, SHELL_EXIT_CODE, which has the return code, and SHELL_ERROR, which is a true/false flag based on whether the exit code was nonzero. These variables are the shell result analogues of SQLSTATE and ERROR.

Seems redundant.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2023-01-20 14:25:11 Re: Implement missing join selectivity estimation for range types
Previous Message Robert Haas 2023-01-20 13:47:18 Re: Decoupling antiwraparound autovacuum from special rules around auto cancellation