Re: psql and readline

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Alexander M(dot) Pravking" <fduch(at)antar(dot)bryansk(dot)ru>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and readline
Date: 2003-01-08 17:28:15
Message-ID: 200301081728.h08HSFQ01413@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> "Alexander M. Pravking" <fduch(at)antar(dot)bryansk(dot)ru> writes:
> > On Wed, Jan 08, 2003 at 10:53:51AM +0100, Ian Barwick wrote:
> >> On Wednesday 08 January 2003 07:55, Christopher Kings-Lynne wrote:
> >>> Is there any way of making the 'up' arrow retrieve all of the last
> >>> multiline query, instead of just the last line? It's really annoying
> >>> working with large multiline queries at the moment...
> >>
> >> Not that I know of, but you can use \e to edit the query in your
> >> favourite editor.
>
> > Sure. But \e puts "\e" into history, instead of the query itself :(
>
> Hm, so it does. It seems like the edited query should go into history,
> at least when you execute it. Peter, is this fixable?

Wow, that would be a nifty trick, though they really did type \e and not
the query the pulled in from the editor.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dan Langille 2003-01-08 17:33:12 Re: psql and readline
Previous Message Tom Lane 2003-01-08 17:19:03 Re: psql and readline