Re: proposal: alternative psql commands quit and exit - Mailing list pgsql-hackers

From Tom Lane
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id 15903.1516200604@sss.pgh.pa.us
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Chapman Flack <chap@anastigmatix.net>)
Responses Re: proposal: alternative psql commands quit and exit
List pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> On 01/17/18 06:50, Geoff Winkless wrote:
>> Having said all that, has anyone suggested grabbing and writing out
>> using the "stty quit" value? That appears to work whatever level
>> you're at, readline-or-not, mid-line or not. It wasn't even something
>> I was aware of.

> Well, the usual use of SIGQUIT is to abort a process while generating
> a core dump so it can be post-mortem debugged, and the abort is immediate
> without any exit hooks in the process having a chance to execute, so
> maybe it isn't a habit we would want to inculcate for general use.

In addition to that, there almost certainly isn't a Windows equivalent.
(I'm still not very sure which of ^C and ^D have Windows equivalents.)

            regards, tom lane


pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: Package version in PG_VERSION and version()
Next
From: Tom Lane
Date:
Subject: Re: Package version in PG_VERSION and version()