BUG #2840: \set HISTCONTROL ignoredups doesn't work in psql

Started by Ned T. Criglerover 19 years ago4 messagesbugs
Jump to latest
#1Ned T. Crigler
crigler@users.sourceforge.net

The following bug has been logged online:

Bug reference: 2840
Logged by: Ned T. Crigler
Email address: crigler@users.sourceforge.net
PostgreSQL version: 8.2
Operating system: Linux (Debian unstable)
Description: \set HISTCONTROL ignoredups doesn't work in psql
Details:

In psql, doing:

\set HISTCONTROL ignoredups
select 1;
select 1;
select 1;
select 1;
select 1;

adds every select statement into the history, instead of ignoring the
duplicate statements.

#2Gurjeet Singh
singh.gurjeet@gmail.com
In reply to: Ned T. Crigler (#1)
Re: BUG #2840: \set HISTCONTROL ignoredups doesn't work in psql

On 12/19/06, Ned T. Crigler <crigler@users.sourceforge.net> wrote:

In psql, doing:

\set HISTCONTROL ignoredups
select 1;
select 1;
select 1;
select 1;
select 1;

adds every select statement into the history, instead of ignoring the
duplicate statements.

Can you please let us know the environment? If it is psql on Windows, then I
think it is the cmd.exe thats storing that history for you and not psql
itself.

Regards,

--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | yahoo }.com

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ned T. Crigler (#1)
Re: BUG #2840: \set HISTCONTROL ignoredups doesn't work in psql

"Ned T. Crigler" <crigler@users.sourceforge.net> writes:

Description: \set HISTCONTROL ignoredups doesn't work in psql

Ooops, seems it got broken somewhere between 8.1 and 8.2. Thanks for
the report!

regards, tom lane

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ned T. Crigler (#1)
Re: BUG #2840: \set HISTCONTROL ignoredups doesn't work in psql

"Ned T. Crigler" <crigler@users.sourceforge.net> writes:

Description: \set HISTCONTROL ignoredups doesn't work in psql

Fixed, thanks for the report.

regards, tom lane