pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: weired behavior... after pg_resetxlog-> dump->initdb-->reload.
Date: Wed, 16 Jun 2004 20:30:38 +0530
Message-ID: <40D06096.90200@trade-india.com> (raw)
In-Reply-To: <21524.1087394109@sss.pgh.pa.us>
References: <40CFFC68.5090704@trade-india.com>
	<21524.1087394109@sss.pgh.pa.us>


Dear Tom,

Sorry i could not replicate that issue . But
here is something which was the original problem
and is replicable.


Regds
Mallah.



rt2=# CREATE UNIQUE INDEX users_1 on users_sample(name);
ERROR:  could not create unique index
DETAIL:  Table contains duplicated values.
rt2=#
rt2=# SELECT name from users_sample group by name having count(*) > 1 
limit 20;
+------+
| name |
+------+
+------+
(0 rows)

Time: 766.725 ms
rt2=# SELECT version();
rt2=# SELECT name from users_sample group by name having count(*) > 1 ;
+------+
| name |
+------+
+------+
(0 rows)

Time: 905.586 ms
rt2=# SELECT version();
+----------------------------------------------------------------------------------------------------------+
|                                                 
version                                                  |
+----------------------------------------------------------------------------------------------------------+
| PostgreSQL 7.4.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 
20030502 (Red Hat Linux 3.2.3-34) |
+----------------------------------------------------------------------------------------------------------+
(1 row)

Time: 338.191 ms


Tom Lane wrote:

>Rajesh Kumar Mallah <mallah@trade-india.com> writes:
>  
>
>>rt2=# SELECT name from users group by name having count(*) > 1 limit 20;
>>(4 rows)
>>rt2=# SELECT name from users group by name having count(*) > 1 ;
>>(0 rows)
>>    
>>
>
>Weird.  What PG version is this?  What does EXPLAIN show for each of
>these queries (maybe EXPLAIN ANALYZE too)?  Can you provide a
>self-contained test case?
>
>			regards, tom lane
>
>  
>

view thread (9+ messages)  latest in thread

Message-ID: <40D06096.90200@trade-india.com>
Permalink:  ../40D06096.90200@trade-india.com/
Also on:    postgresql.org/message-id/40D06096.90200@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com, tgl@sss.pgh.pa.us
  Subject: Re: weired behavior... after pg_resetxlog-> dump->initdb-->reload.
  In-Reply-To: <40D06096.90200@trade-india.com>
  References: <40CFFC68.5090704@trade-india.com> <21524.1087394109@sss.pgh.pa.us> <40D06096.90200@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox