pgsql: psql: Fix exit status when query is canceled

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Fix exit status when query is canceled
Date: 2022-10-22 07:55:46
Message-ID: E1om9M9-000Gsc-Sc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Fix exit status when query is canceled

Because of a small thinko in 7844c9918a43b494adde3575891d217a37062378,
psql -c would exit successfully when a query is canceled. Fix this so
that it exits with a nonzero status, just like for all other errors.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2598b76bf2bc78af4c65ffab4736c7b49205fc7a

Modified Files
--------------
src/bin/psql/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-10-22 08:52:52 pgsql: Remove pgpid_t type, use pid_t instead
Previous Message Michael Paquier 2022-10-22 02:54:28 pgsql: Improve memory handling across SQL-callable backup functions