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 20180124135814.rqaqq7gihjj65uqu@alvherre.pgsql
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Vik Fearing <vik.fearing@2ndquadrant.com>)
Responses Re: proposal: alternative psql commands quit and exit
List pgsql-hackers
Vik Fearing wrote:

> I haven't applied the patch, but what happens if you combine these?
> From your examples, I would imagine something like this:
> 
> test=# select '
> test'# quit
> Use \q to quit or press control-C to clear the input buffer.
> test'# \q
> test'#
> 
> Surely that's not helpful.

But there's a simple solution to that: make it two messages, one when
inside quotes ("Use Control-C to clear the input buffer, then \q to
quit") and one outside (current wording).  Wasn't this already proposed
elsewhere in the thread?

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


pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: [HACKERS] Optional message to user when terminating/cancelling backend
Next
From: Geoff Winkless
Date:
Subject: Re: proposal: alternative psql commands quit and exit