Re: psql: recall previous command? - Mailing list pgsql-hackers

From Ian Barwick
Subject Re: psql: recall previous command?
Date
Msg-id [email protected]
Whole thread Raw
In response to psql: recall previous command?  (Neil Conway <[email protected]>)
List pgsql-hackers
On Tue, 22 Feb 2005 15:26:52 +1100, Neil Conway <[email protected]> wrote:
> Is there a way to recall the previous command in psql? Obviously, "up
> arrow" or Ctrl-P using readline and the default readline bindings is
> close, but it recalls the previous _line_ of input. That is not at all
> the same thing in the case of a multiple line command, for example.

Just checking: do you mean something like the \e and \p commands?
 test=> SELECT \timing Timing is off. test-> 'Hello World';   ?column? -------------  Hello World (1 row)
 test=> \p SELECT 'Hello World'; test=>


Ian Barwick


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: left-deep plans?
Next
From: Tom Lane
Date:
Subject: Re: psql: recall previous command?