From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Fix exit status when query is canceled
Date: Sat, 22 Oct 2022 07:55:46 +0000
Message-ID: <E1om9M9-000Gsd-TS@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: psql: Fix exit status when query is canceled
In-Reply-To: <E1om9M9-000Gsd-TS@gemulon.postgresql.org>
References: <E1om9M9-000Gsd-TS@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox