Re: How to create unique constraint on NULL columns

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: How to create unique constraint on NULL columns
Дата
Msg-id dbg5ji$2hei$3@news.hub.org
обсуждение исходный текст
Ответ на How to create unique constraint on NULL columns  ("Andrus" <eetasoft@online.ee>)
Ответы Re: How to create unique constraint on NULL columns  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
> I was faced with a similar issue.  One suggestion I got from the Internet
> was to create a shadow column that contains the values used in the Index,
> with a dummy entry (in my case, the string <NULL>) for those records in
> which the primary column is NULL.  It works well for my app.

Michael,

thank you.
This is not working in my case. Uniquenes sis not sufficient: I need
referential integrity with uniqueness. If I add <NULL> department, this must
be added into department table also and pollutes this table.

Andrus.



В списке pgsql-general по дате отправления:

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: How to create unique constraint on NULL columns
Следующее
От: "Andrus"
Дата:
Сообщение: Re: (Win32 Postgres) Slow to Connect first - OK afterwards