Re: [HACKERS] psql problem - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] psql problem
Date
Msg-id 13062.950758228@sss.pgh.pa.us
Whole thread Raw
In response to psql problem  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
Responses Re: [HACKERS] psql problem
List pgsql-hackers
Chris Bitmead <chrisb@nimrod.itg.telstra.com.au> writes:
> I was noticing that psql now exits on ctrl-C.

Ugh.  So now, if you type control-C while a query is in progress,
you get a cancel request sent, as you intended.  Type it a tenth of
a second too late, however, and you get booted out of psql instead.

I think this is lousy human engineering, even though I'm sure Peter
thought it was a good idea at the time.  If we trap control-C we
should trap it all the time, not create a delay-dependent behavior.

> This is much better than the previous behaviour where it kinda got
> muddled up and you could destroy your database if a half-completed
> command was in its buffer.

What?  Are you saying that control-C doesn't do a \r (reset the
query buffer)?  That's probably true, and I agree that it should...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] ERROR: Unable to identify an operator '=' for types 'numeric' and 'float8'
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] psql problem]