Re: BUG #3724: Duplicate values added to table despite unique index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mason Hale" <masonhale(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3724: Duplicate values added to table despite unique index
Date: 2007-11-06 16:16:32
Message-ID: 21754.1194365792@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Mason Hale" <masonhale(at)gmail(dot)com> writes:
> However running the same query on the original 8.2.4 database returns zero
> rows:

> prod_1=> select page_id, count(*) from topic_version_page where
> topic_version_id = 263 group by 1 having count(*) > 1;
> page_id | count
> ---------+-------
> (0 rows)

Is that still true if you do the query with enable_indexscan = off
and enable_bitmapscan = off? If you see matching rows then, I'd
suspect a corrupt index in the 8.2.4 installation --- does REINDEXing
it succeed?

For that matter, do you still see dups if you prevent use of the index
in the 8.2.5 query? Maybe it's that index that is corrupt.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mason Hale 2007-11-06 16:23:38 Re: BUG #3724: Duplicate values added to table despite unique index
Previous Message Mason Hale 2007-11-06 15:51:26 BUG #3724: Duplicate values added to table despite unique index