Re: psql: recall previous command?

From: Ian Barwick <barwick(at)gmail(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql: recall previous command?
Date: 2005-02-22 07:18:19
Message-ID: 1d581afe05022123188561d56@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 22 Feb 2005 15:26:52 +1100, Neil Conway <neilc(at)samurai(dot)com> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-02-22 07:51:45 Re: psql: recall previous command?
Previous Message Tom Lane 2005-02-22 07:07:09 Re: left-deep plans?