Re: psql and readline

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and readline
Date: 2003-01-09 21:49:33
Message-ID: Pine.LNX.4.44.0301092039320.29178-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-01-09 21:49:42 Re: psql and readline
Previous Message Tom Lane 2003-01-09 21:48:27 Re: Dollar in identifiers