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

From Geoff Winkless
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id CAEzk6fd7J-acH_KLE0CPKdqwPd4Yfv6vGAtFuXks4SjEng+WHg@mail.gmail.com
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Arthur Nascimento <tureba@gmail.com>)
Responses Re: proposal: alternative psql commands quit and exit
List pgsql-hackers
On 12 December 2017 at 16:36, Arthur Nascimento <tureba@gmail.com> wrote:
> Nano keeps a cheatsheet of commands on the bottom; and it's regarded
> as a fairly good editor for newcomers. Some shells have a right-hand
> side status bar.

I quite like this idea, although I would rather a line printed after
each command is run: something like

mydbname=# select ;
--
(1 row)

\h for help, \q for quit, \expert to turn off this message
osprey=#

This has the advantage that it doesn't need curses support, is pretty
simple and actually has the "off" information inline.

When you type \expert you could print a line that says

put \expert in ~/.psqlrc to make this change permanent

or something.

Geoff


pgsql-hackers by date:

Previous
From: Everaldo Canuto
Date:
Subject: Re: proposal: alternative psql commands quit and exit
Next
From: Oleg Ivanov
Date:
Subject: Re: ML-based indexing ("The Case for Learned Index Structures", apaper from Google)