Re: proposal: alternative psql commands quit and exit

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Everaldo Canuto <everaldo(dot)canuto(at)gmail(dot)com>, Vik Fearing <vik(dot)fearing(at)2ndquadrant(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: alternative psql commands quit and exit
Date: 2018-01-17 14:17:59
Message-ID: 5A5F5B17.2040101@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

-Chap

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Geoff Winkless 2018-01-17 14:23:23 Re: proposal: alternative psql commands quit and exit
Previous Message Christoph Berg 2018-01-17 14:10:58 Re: Package version in PG_VERSION and version()