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

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: psql: Add quit/help behavior/hint, for other tool portability
Date: 2018-02-01 13:30:53
Message-ID: E1ehEx3-0007jn-MU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-02-01 20:33:57 pgsql: Fix possible failure to mark hash metapage dirty.
Previous Message Bruce Momjian 2018-01-31 22:53:20 Re: pgsql: doc: clearify trigger behavior for inheritance