unable to cerate uniqie index on macaddr ! - Mailing list pgsql-general

From Pawel Pierscionek
Subject unable to cerate uniqie index on macaddr !
Date
Msg-id 12468.990130@astercity.net
Whole thread Raw
List pgsql-general
Hi,

create dhcp
(
mac macaddr,
ip  inet4
);

I fill it with unique mac,ip pairs and do

select * from dhcp;
...
(493 rows)

select * from dhcp group by mac;
...
(493 rows)

select distinct on mac mac from dhcp group by mac;
...
(493 rows)

create unique index dhcp_mac on dhcp (mac)
ERROR:  Cannot create unique index. Table contains non-unique values

Any clue ?
Table is freshly created;
Db is after a vacuum.

TIA,
Pawel Pierscionek



pgsql-general by date:

Previous
From: Robert Chalmers
Date:
Subject: Dashed if I can work this out. Help needed copying substring to another field
Next
From: Thomas Reinke
Date:
Subject: Inaccessible table??