Unix Technical Forum

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

This is a discussion on BUG #2840: \set HISTCONTROL ignoredups doesn't work in psql within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2840 Logged by: Ned T. Crigler Email address: crigler@users.sourceforge.net PostgreSQL ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:28 AM
Ned T. Crigler
 
Posts: n/a
Default BUG #2840: \set HISTCONTROL ignoredups doesn't work in psql


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.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 11:28 AM
Gurjeet Singh
 
Posts: n/a
Default 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 11:28 AM
Tom Lane
 
Posts: n/a
Default 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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 11:29 AM
Tom Lane
 
Posts: n/a
Default 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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com