pgsql: Allow psql's other uses of simple_prompt() to be interrupted by

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow psql's other uses of simple_prompt() to be interrupted by
Date: 2021-11-19 17:11:54
Message-ID: E1mo7QY-0007uI-HE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-11-20 19:30:05 pgsql: Fix SP-GiST scan initialization logic for binary-compatible case
Previous Message Andres Freund 2021-11-19 16:47:47 pgsql: Initialize backend status reporting during bootstrap.