Re: proposal: alternative psql commands quit and exit

From: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Robert Haas <robertmhaas(at)gmail(dot)com>, Everaldo Canuto <everaldo(dot)canuto(at)gmail(dot)com>, Chapman Flack <chap(at)anastigmatix(dot)net>, 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-15 16:53:27
Message-ID: CAEzk6ff5nT8nT5QE2Kn=AFZFA=S81b7yC=ukFuSRuDJXu87Z4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15 January 2018 at 16:48, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Geoff Winkless <pgsqladmin(at)geoff(dot)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?

Geoff

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-01-15 16:55:32 Re: proposal: alternative psql commands quit and exit
Previous Message Julian Markwort 2018-01-15 16:48:51 Re: [HACKERS] [FEATURE PATCH] pg_stat_statements with plans (v02)