pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: psql: Fix exit status when query is canceled
2+ messages / 1 participants
[nested] [flat]

* pgsql: psql: Fix exit status when query is canceled
@ 2022-10-22 07:55 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2022-10-22 07:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: psql: Fix exit status when query is canceled
@ 2022-10-22 07:55 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2022-10-22 07:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-10-22 07:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 07:55 pgsql: psql: Fix exit status when query is canceled Peter Eisentraut <peter@eisentraut.org>
2022-10-22 07:55 pgsql: psql: Fix exit status when query is canceled Peter Eisentraut <peter@eisentraut.org>

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