Re: proposal: alternative psql commands quit and exit

Поиск
Список
Период
Сортировка
Искать
От
Daniel Verite
Тема
Re: proposal: alternative psql commands quit and exit
Дата
Msg-id
a10f09cd-3710-48b7-8a8d-e5308599b1a8@manitou-mail.org
Ответ на
Список
Дерево обсуждения
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>
	Bruce Momjian wrote:


> > Also, the fact that Control-D can quit in the middle of a
> > multiline query without any confirmation is a usability problem, because
> > you can always fat-finger a Ctrl+key. By comparison, bash doesn't
> > accept it and emits the same error as if a script was improperly
> > terminated. Example:
> > 
> > $ cat '
> > > [Hit Ctrl+D here] bash: unexpected EOF while looking for matching `''
> > bash: syntax error: unexpected end of file
> > $ 

BTW, I've missed that Ctrl+D behavior also depends on IGNOREEOF.

From https://www.postgresql.org/docs/current/static/app-psql.html

IGNOREEOF

    If set to 1 or less, sending an EOF character (usually Control+D)
    to an interactive session of psql will terminate the
    application. If set to a larger numeric value, that many
    consecutive EOF characters must be typed to make an interactive
    session terminate. If the variable is set to a non-numeric value,
    it is interpreted as 10. The default is 0.


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Peter Eisentraut
Дата:
FAQ