Re: psql and readline

From: Ian Barwick <barwick(at)gmx(dot)net>
To: "Alexander M(dot) Pravking" <fduch(at)antar(dot)bryansk(dot)ru>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and readline
Date: 2003-01-08 12:14:58
Message-ID: 200301081314.58267.barwick@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2003-01-08 12:17:38 Re: psql and readline
Previous Message Alexander M. Pravking 2003-01-08 12:02:20 Re: psql and readline