Re: [PATCH] Support for Array ELEMENT Foreign Keys - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Support for Array ELEMENT Foreign Keys
Date
Msg-id 2737.1350922112@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] Support for Array ELEMENT Foreign Keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] Support for Array ELEMENT Foreign Keys  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: [PATCH] Support for Array ELEMENT Foreign Keys  (Andrew Dunstan <andrew@dunslane.net>)
Re: [PATCH] Support for Array ELEMENT Foreign Keys  (Andres Freund <andres@2ndquadrant.com>)
Re: [PATCH] Support for Array ELEMENT Foreign Keys  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: ToDo: KNN Search should to support DISTINCT clasuse?
Next
From: Pavel Stehule
Date:
Subject: Re: [PATCH] Support for Array ELEMENT Foreign Keys