Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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

pgsql-hackers by date

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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group