Re: [PATCH] Support for foreign keys with arrays

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: [PATCH] Support for foreign keys with arrays
Дата
Msg-id CAHyXU0zg9dZcfY=xR30MBK0soPHXWjLAGZVPPVsE-bUf+C_Axw@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] Support for foreign keys with arrays  (Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>)
Ответы Re: [PATCH] Support for foreign keys with arrays  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Fri, Nov 4, 2011 at 7:48 AM, Gabriele Bartolini
<gabriele.bartolini@2ndquadrant.it> wrote:
> This patch adds basic support of arrays in foreign keys, by allowing to
> define a referencing column as an array of elements having the same type as
> the referenced column in the referenced table.
> Every NOT NULL element in the referencing array is matched against the
> referenced table.

I like the idea of being able to define more flexible foreign keys,
but are we gilding the lily here?  The proposed solution is really
quite specific to the nuances of arrays.  Perhaps there is a more
general expression based syntax that leaves the door open for other
types conditions such as dealing fields dependent on other fields?

merlin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Singleton range constructors versus functional coercion notation
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Core Extensions relocation