pgsql: psql: Fix exit status when query is canceled - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: psql: Fix exit status when query is canceled
Date
Msg-id E1om9M9-000Gsd-TS@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4a6de748d3429cfa081942c46411d62341867bfd

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


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Improve memory handling across SQL-callable backup functions
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Remove pgpid_t type, use pid_t instead