pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: psql:  Add quit/help behavior/hint, for other tool portability
Date: Thu, 01 Feb 2018 13:30:53 +0000
Message-ID: <E1ehEx3-0007jn-MU@gemulon.postgresql.org> (raw)

psql:  Add quit/help behavior/hint, for other tool portability

Issuing 'quit'/'exit' in an empty psql buffer exits psql.  Issuing
'quit'/'exit' in a non-empty psql buffer alone on a line with no prefix
whitespace issues a hint on how to exit.

Also add similar 'help' hints for 'help' in a non-empty psql buffer.

Reported-by: Everaldo Canuto

Discussion: https://postgr.es/m/flat/CALVFHFb-C_5_94hueWg6Dd0zu7TfbpT7hzsh9Zf0DEDOSaAnfA%40mail.gmail.com

Author: original author Robert Haas, modified by me

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/df9f599bc6f14307252ac75ea1dc997310da5ba6

Modified Files
--------------
src/bin/psql/mainloop.c | 113 ++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 100 insertions(+), 13 deletions(-)



Message-ID: <E1ehEx3-0007jn-MU@gemulon.postgresql.org>
Permalink:  ../E1ehEx3-0007jn-MU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ehEx3-0007jn-MU@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: pgsql: psql:  Add quit/help behavior/hint, for other tool portability
  In-Reply-To: <E1ehEx3-0007jn-MU@gemulon.postgresql.org>
  References: <E1ehEx3-0007jn-MU@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox