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

From David Fetter
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id 20180115165623.GC14029@fetter.org
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Geoff Winkless <pgsqladmin@geoff.dj>)
Responses Re: proposal: alternative psql commands quit and exit
Re: proposal: alternative psql commands quit and exit
List pgsql-hackers
On Mon, Jan 15, 2018 at 04:53:27PM +0000, Geoff Winkless wrote:
> On 15 January 2018 at 16:48, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Geoff Winkless <pgsqladmin@geoff.dj> writes:
> >> Perhaps different messages on different OSes? :)
> >
> > It's worse than that: the EOF key is configurable.  In principle
> > we could look into the tty settings and print the right thing, but
> > I doubt we want to go there, especially if there's no
> > corresponding thing on Windows.
> 
> But surely if Windows always exits using Ctrl-C than that's easiest?
> 
> And while trying to find the EOF setting in libreadline might get
> messy, you're already assuming that ctrl-C hasn't been knobbled
> using stty intr. Unless you want to go searching for that too?

I'm pretty sure changing either or both of those settings would
qualify as pilot error, and pretty abstruse pilot error at that.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: proposal: alternative psql commands quit and exit
Next
From: Tom Lane
Date:
Subject: Re: proposal: alternative psql commands quit and exit