Re: proposal: alternative psql commands quit and exit
От
Bruce Momjian
Тема
Re: proposal: alternative psql commands quit and exit
Дата
Msg-id
20180212062853.GA6385@momjian.us
Ответ на
Re: proposal: alternative psql commands quit and exit (Bruce Momjian)
Список
Дерево обсуждения
proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit Laurenz Albe <laurenz.albe@cybertec.at>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit Michael Paquier <michael.paquier@gmail.com>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit Nikolay Samokhvalov <samokhvalov@gmail.com>
Re: proposal: alternative psql commands quit and exit Sergei Kornilov <sk@zsrv.org>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit "Daniel Vérité" <daniel@manitou-mail.org>
Re: proposal: alternative psql commands quit and exit Robert Haas <robertmhaas@gmail.com>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Robert Haas <robertmhaas@gmail.com>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Michael Paquier <michael.paquier@gmail.com>
Re: proposal: alternative psql commands quit and exit Rok Kralj <rok.kralj@gmail.com>
Re: proposal: alternative psql commands quit and exit Scott Mead <scottm@openscg.com>
Re: proposal: alternative psql commands quit and exit hvjunk <hvjunk@gmail.com>
Re: proposal: alternative psql commands quit and exit Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit "David G. Johnston" <david.g.johnston@gmail.com>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Craig Ringer <craig@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit Chapman Flack <chap@anastigmatix.net>
Re: proposal: alternative psql commands quit and exit Craig Ringer <craig@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Gasper Zejn <zejn@owca.info>
Re: proposal: alternative psql commands quit and exit Jeremy Finzel <finzelj@gmail.com>
Re: proposal: alternative psql commands quit and exit "David G. Johnston" <david.g.johnston@gmail.com>
Re: proposal: alternative psql commands quit and exit Avinash Kumar <avinash.vallarapu@gmail.com>
Re: proposal: alternative psql commands quit and exit Craig Ringer <craig@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit Arthur Nascimento <tureba@gmail.com>
Re: proposal: alternative psql commands quit and exit Geoff Winkless <pgsqladmin@geoff.dj>
Re: proposal: alternative psql commands quit and exit Chapman Flack <chap@anastigmatix.net>
Re: proposal: alternative psql commands quit and exit Geoff Winkless <pgsqladmin@geoff.dj>
Re: proposal: alternative psql commands quit and exit Robert Haas <robertmhaas@gmail.com>
Re: proposal: alternative psql commands quit and exit Chapman Flack <chap@anastigmatix.net>
Re: proposal: alternative psql commands quit and exit Tom Lane <tgl@sss.pgh.pa.us>
Re: proposal: alternative psql commands quit and exit Craig Ringer <craig@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit hvjunk <hvjunk@gmail.com>
Re: proposal: alternative psql commands quit and exit "Daniel Vérité" <daniel@manitou-mail.org>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit "Daniel Vérité" <daniel@manitou-mail.org>
Re: proposal: alternative psql commands quit and exit Vladimir Svedov <vodevsh@gmail.com>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit "David G. Johnston" <david.g.johnston@gmail.com>
Re: proposal: alternative psql commands quit and exit Ryan Murphy <ryanfmurphy@gmail.com>
Re: proposal: alternative psql commands quit and exit "David G. Johnston" <david.g.johnston@gmail.com>
Re: proposal: alternative psql commands quit and exit Geoff Winkless <pgsqladmin@geoff.dj>
Re: proposal: alternative psql commands quit and exit Robert Haas <robertmhaas@gmail.com>
Re: proposal: alternative psql commands quit and exit Chapman Flack <chap@anastigmatix.net>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit Robert Haas <robertmhaas@gmail.com>
Re: proposal: alternative psql commands quit and exit Michael Paquier <michael.paquier@gmail.com>
Re: proposal: alternative psql commands quit and exit Geoff Winkless <pgsqladmin@geoff.dj>
Re: proposal: alternative psql commands quit and exit Craig Ringer <craig@2ndquadrant.com>
Re: proposal: alternative psql commands quit and exit "David G. Johnston" <david.g.johnston@gmail.com>
Re: proposal: alternative psql commands quit and exit Ryan Murphy <ryanfmurphy@gmail.com>
Re: proposal: alternative psql commands quit and exit Oliver Ford <ojford@gmail.com>
Re: proposal: alternative psql commands quit and exit Szymon Lipiński <mabewlun@gmail.com>
Re: proposal: alternative psql commands quit and exit Robert Haas <robertmhaas@gmail.com>
Re: proposal: alternative psql commands quit and exit David Fetter <david@fetter.org>
Re: proposal: alternative psql commands quit and exit Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: proposal: alternative psql commands quit and exit David Fetter <david@fetter.org>
Re: proposal: alternative psql commands quit and exit Everaldo Canuto <everaldo.canuto@gmail.com>
Re: proposal: alternative psql commands quit and exit "David G. Johnston" <david.g.johnston@gmail.com>
Re: proposal: alternative psql commands quit and exit Oliver Ford <ojford@gmail.com>
On Fri, Feb 2, 2018 at 12:39:28AM -0500, Bruce Momjian wrote: > I just thought of an inconsistency. First, we now consistently exit with > 'exit', 'quit', and '\q' if used in an empty psql query buffer. Also, we now > hint when 'exit' and 'quit' are used in non-empty query buffers: > > test=> SELECT > test-> exit > --> Use \q to quit. > > We obviously don't need to hint for '\q' since it works in this context. > > Where it is odd is that we hint for 'exit' and 'quit' in places that > '\q' doesn't work, but we don't hint for '\q' in the same contexts. > Here is the hint for 'exit' and 'quit': > > test=> SELECT ' > test'> exit > --> Use control-D to quit. > > but we don't hint for '\q': > > test=> SELECT ' > test'> \q > --> test'> > > Should we give the same "Use control-D to quit." hint here for '\q'? > I think it is logical that we should. I have applied the attached patch giving a ^D/^C hint where \q is ignored, and add C comment documenting why exit/quit is not documented. I consider this issue closed, or quited, or exited. :-) -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +
В списке pgsql-hackers по дате отправления
От: Thomas Munro
Дата: