Re: psql and readline - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: psql and readline
Date
Msg-id Pine.LNX.4.44.0301092039320.29178-100000@localhost.localdomain
Whole thread Raw
In response to psql and readline  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Responses Re: psql and readline  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
List pgsql-hackers
Christopher Kings-Lynne writes:

> Is there any way of making the 'up' arrow retrieve all of the last multiline
> query, instead of just the last line?

There is nothing technical that should prevent you from implementing it.
But you need to come up with a reasonable system to keep the history
straight if meta commands are mixed with multiline commands, such as

select *
\x
from foo;

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Execute command type
Next
From: Peter Eisentraut
Date:
Subject: Re: psql and readline