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.