Reference on partial data

Поиск
Список
Период
Сортировка
От mito
Тема Reference on partial data
Дата
Msg-id gsf3is$1upe$1@news.hub.org
обсуждение исходный текст
Ответы Re: Reference on partial data  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Hi,
is it possible to create reference constraint only on defined subset of 
data?

Reference can be defined on column which has unique constraint. It is 
also possible to create partial unique index. So it should by possible 
to reference this column. But postgres can not see this constraint and 
raises: ERROR:  there is no unique constraint matching given keys for 
referenced table

Any ideas ???

I dont feel my self to rewrite builtin trigger function which ensures 
reference integrity.


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

Предыдущее
От: mito
Дата:
Сообщение: Recursive plpgsql function in rule
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Recursive plpgsql function in rule