unable to cerate uniqie index on macaddr !

Поиск
Список
Период
Сортировка
От Pawel Pierscionek
Тема unable to cerate uniqie index on macaddr !
Дата
Msg-id 12468.990130@astercity.net
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Robert Chalmers
Дата:
Сообщение: Dashed if I can work this out. Help needed copying substring to another field
Следующее
От: Thomas Reinke
Дата:
Сообщение: Inaccessible table??