Re: [GENERAL] Recalling previous commands at the PSQL prompt

From: "Gene Selkov, Jr(dot)" <selkovjr(at)mcs(dot)anl(dot)gov>
To: M(dot)Boekhold(at)et(dot)tudelft(dot)nl
Cc: "Gnoh, Chee Seng" <csgnoh(at)intergraph(dot)com(dot)sg>, "PGSQL-General (E-mail)" <pgsql-general(at)postgreSQL(dot)org>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Recalling previous commands at the PSQL prompt
Date: 1998-07-20 14:51:05
Message-ID: 35B35959.BD27054C@mcs.anl.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Maarten Boekhold wrote:
>
> On Mon, 20 Jul 1998, Gnoh, Chee Seng wrote:
>
> > Hi All,
> >
> > I am new to PostgreSQL. I was wondering if there is a way to recall
> > previous commands at the PSQL prompt, this would save me the hassle of
> > typing the same SQL commands again. Thanks in advance.
>
> Use the up-arrow. If that doesn't work, you probably haven't got
> libreadline/libhistory installed, or they are installed in an unusual
> place where configure couldn't find them.

How about giving psql command history a longer life, like bash does it
(.bash_history)?

Gene

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gene Selkov, Jr. 1998-07-20 15:13:59 Re: [GENERAL] Inserting values into set attributes (fwd)
Previous Message Aleksey Dashevsky 1998-07-20 14:20:06 Removing user-defined types & functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-07-20 15:44:50 Re: [HACKERS] Finding primary keys in a table
Previous Message Tom Lane 1998-07-20 14:48:11 Re: [HACKERS] using C++ to define new functions