Re: Foreign key constraint for array-field?

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Foreign key constraint for array-field?
Дата
Msg-id 48D69B59.6010402@dunslane.net
обсуждение исходный текст
Ответ на Re: Foreign key constraint for array-field?  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Foreign key constraint for array-field?
Список pgsql-hackers

Simon Riggs wrote:
> No, its not possible. Need a trigger.
>
> I think we should support it though. If we extend the relational model
> with arrays then it would be sensible if we support this aspect as
> well. 
>
> Implementation would be fairly straightforward. ri_triggers currently
> assumes a non-array value is being checked, but that could be changed to
> IN(array). Multi-column keys with arrays sound confusing though.
>
>   

What's the syntax going to look like?

cheers

andrew


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

Предыдущее
От: "Dmitry Koterov"
Дата:
Сообщение: Re: Foreign key constraint for array-field?
Следующее
От: David Fetter
Дата:
Сообщение: Re: Foreign key constraint for array-field?