Re: proposal: alternative psql commands quit and exit - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id 20180116192328.76v7afuhbieuedc4@alvherre.pgsql
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> Also, I remain of the opinion that we needn't necessarily teach them the
> minimum-keystrokes solution; it's better to teach something that will work
> every time.  Maybe ^C is close enough on that score, but I'm not sure.

IMO in the spirit of keeping things simple, it's enough to tell people
to ^C their way out (and why); anything more complicated than that, such
as closing any open quotes, is not catering for the newbie community
that this feature is supposed to help.  As Robert said, if you're trying
to exit the terminal, you don't care too much about any string literals
you have open.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Vladimir Sitnikov
Date:
Subject: Re: jdbc targetServerType=slave with readonly connection
Next
From: David Fetter
Date:
Subject: Re: let's not complain about harmless patch-apply failures