Re: [PATCH] Support for Array ELEMENT Foreign Keys

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [PATCH] Support for Array ELEMENT Foreign Keys
Дата
Msg-id 201210221813.20301.andres@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [PATCH] Support for Array ELEMENT Foreign Keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] Support for Array ELEMENT Foreign Keys
Список pgsql-hackers
On Monday, October 22, 2012 06:08:32 PM Tom Lane wrote:
> I wrote:
> > I tested, and indeed this seems to work:
> >     CREATE TABLE t1 (c int[] WHERE EACH ELEMENT REFERENCES t2);
> > 
> > and it's perfectly sensible from an English-grammar standpoint too.
> > If we take that, how would we spell the table-constraint case exactly?
> > Grammatically I'd prefer
> > 
> >     FOREIGN KEY (foo, EACH ELEMENT OF bar) REFERENCES
> 
> Are people happy with these syntax proposals, or do we need some other
> color for the bikeshed?

Except that I'd prefer a WHERE in the table-constraint case as well for 
consistencies sake I am unsurprisingly happy with the proposal.

Greetings,

Andres
-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCH] Support for Array ELEMENT Foreign Keys
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [v9.3] Row-Level Security