Re: proposal: alternative psql commands quit and exit
От
Tom Lane
Тема
Re: proposal: alternative psql commands quit and exit
Дата
Msg-id
20860.1516035332@sss.pgh.pa.us
Ответ на
Re: proposal: alternative psql commands quit and exit (Robert Haas)
Список
Дерево обсуждения
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>
Robert Haas writes: > On Mon, Jan 15, 2018 at 10:57 AM, Tom Lane wrote: >> I was kind of imagining that we could make the hint text vary depending >> on the parsing state. Maybe that's too hard to get to --- but if the >> prompt-creating code knows what it is, perhaps this can too. > 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. Right, but if we're willing to look at the parse state, we don't need to cram all possible knowledge into one 80-character string. I'm thinking about just responding to the current situation, say You have begun a quoted string. To end it, type ' (or ", or $foo$ as appropriate). I'm inclined to violate our usual message style guidelines here by not putting any quotes or punctuation around the ending quote ... more likely to confuse than help. Or, if you're not in a string but there's text in the buffer, You have entered an incomplete SQL command. Type ; to send it or \r to discard it. Or, if there's no text in the buffer, we print the existing help message for "help", or just exit for quit/exit. regards, tom lane
В списке pgsql-hackers по дате отправления