Re: proposal: alternative psql commands quit and exit

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, 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>, Chapman Flack <chap(at)anastigmatix(dot)net>, Vik Fearing <vik(dot)fearing(at)2ndquadrant(dot)com>, 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:18:57
Message-ID: 20180115161857.GO2416@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Geoff, all,

* Geoff Winkless (pgsqladmin(at)geoff(dot)dj) wrote:
> On 15 January 2018 at 16:10, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> >
> > More broadly, I think what is needed here is less C-fu than
> > English-fu. If we come up with something good, we can make it print
> > that thing.
>
> Can we not just say "ctrl-D to quit" instead of \q? Doesn't that work
> everywhere?

My favorite part of this thread so far is actually realizing that when
someone hits ctrl-D, we'll happily print '\q' even if we were in quotes:

=> select $$
-> oh look
-> \q
-> doesn't work
-> but if I hit ctrl-D...
-> \q
➜ ~

Which is pretty cute considering \q doesn't actually work there. :)

Thanks!

Stephen

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Geoff Winkless 2018-01-15 16:29:36 Re: proposal: alternative psql commands quit and exit
Previous Message Laurenz Albe 2018-01-15 16:16:13 Re: proposal: alternative psql commands quit and exit