From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow psql's other uses of simple_prompt() to be interrupted by
Date: Fri, 19 Nov 2021 17:11:54 +0000
Message-ID: <E1mo7QY-0007uI-HE@gemulon.postgresql.org> (raw)
Allow psql's other uses of simple_prompt() to be interrupted by ^C.
This fills in the work left un-done by 5f1148224. \prompt can
be canceled out of now, and so can password prompts issued during
\connect. (We don't need to do anything for password prompts
issued during startup, because we aren't yet trapping SIGINT
at that point.)
Nathan Bossart
Discussion: https://postgr.es/m/747443.1635536754@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/46d665bc26ce57b5afecbc218c8fc3c6848211d8
Modified Files
--------------
src/bin/psql/command.c | 45 +++++++++++++++++++++++++++++++++++----------
src/bin/psql/startup.c | 3 ++-
src/common/sprompt.c | 6 ++++++
3 files changed, 43 insertions(+), 11 deletions(-)
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Allow psql's other uses of simple_prompt() to be interrupted by
In-Reply-To: <E1mo7QY-0007uI-HE@gemulon.postgresql.org>
References: <E1mo7QY-0007uI-HE@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