Re: psql and readline

From: Eric B(dot)Ridge <ebr(at)tcdi(dot)com>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and readline
Date: 2003-01-15 00:24:08
Message-ID: A9A1E9B4-281F-11D7-B02B-0003937E3354@tcdi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've been following this thread, and I thought this might be a good
place and time to throw in a few additional feature requests.

What about expanding the history capabilities of psql's history command
(\s) to include something more bash/tcsh-like? For example:

!insert
-- execute the last command that began with "insert"

!23
-- execute item #23 in my history

The above would require \s to output history index numbers. Might also
be cool if it would (optionally) truncate each line at the console
width, so it would be a little easier to read.

And what about some kind of switch to tell psql to combine multi-line
commands into 1. So if I type a big select on 5 lines, after executing
it, it appears as 1 entry in my history. Say something like \ss for
"history Single" and \sv for "history Verbatim" (or whatever).

Thanks for your time.

eric

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Clift 2003-01-15 00:38:19 Anyone have a fresh Solaris 8 SPARC system to create a PG 7.3.1 package on?
Previous Message Bruce Momjian 2003-01-14 22:52:37 Re: CVS-TIP