Re: psql and readline - Mailing list pgsql-hackers

From Ian Barwick
Subject Re: psql and readline
Date
Msg-id 200301081314.58267.barwick@gmx.net
Whole thread Raw
In response to Re: psql and readline  ("Alexander M. Pravking" <fduch@antar.bryansk.ru>)
List pgsql-hackers
On Wednesday 08 January 2003 13:02, Alexander M. Pravking wrote:
> On Wed, Jan 08, 2003 at 10:53:51AM +0100, Ian Barwick wrote:
> > On Wednesday 08 January 2003 07:55, Christopher Kings-Lynne wrote:
> > > Hi,
> > >
> > > 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 :(

Yes, but the query will remain in the psql query buffer until a different
SQL query (i.e. not a slash command) is executed. Until then
you can reedit and / or reexecute the query (with \g) as long as you like.

Ian Barwick
barwick@gmx.net


pgsql-hackers by date:

Previous
From: "Alexander M. Pravking"
Date:
Subject: Re: psql and readline
Next
From: Gavin Sherry
Date:
Subject: Re: psql and readline