Re: Unique is non unique; no nulls - Mailing list pgsql-general

From Gregory Stark
Subject Re: Unique is non unique; no nulls
Date
Msg-id 87vea2v7ot.fsf@oxford.xeocode.com
Whole thread Raw
In response to Unique is non unique; no nulls  (Razvan Costea-Barlutiu <cbrazvan@laitek.com>)
Responses Re: Unique is non unique; no nulls  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
"Razvan Costea-Barlutiu" <cbrazvan@laitek.com> writes:

> Hello.
>
> Facts:
> 1. System: Win2003
> 2. Postgres 8.2

Is that just 8.2 or 8.2.x? Which x?

> This has way too many ramifications for me to follow so I do appreciate some
> guidance.

What do the outputs of these queries say?

select count(*),count(distinct suid) from mt;

select suid,count(*) from mt group by suid having count(*) > 1;

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

pgsql-general by date:

Previous
From: Razvan Costea-Barlutiu
Date:
Subject: Unique is non unique; no nulls
Next
From: Tom Lane
Date:
Subject: Re: Can't connect (2 dbs) or login (2 others)