Re: Proposed feature: Selective Foreign Keys

Поиск
Список
Период
Сортировка
От Tom Dunstan
Тема Re: Proposed feature: Selective Foreign Keys
Дата
Msg-id 8CC88EC5-3598-4DAC-A7E9-B458DBBD63E9@tomd.cc
обсуждение исходный текст
Ответ на Re: Proposed feature: Selective Foreign Keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 5 Dec 2013, at 06:10, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>>>> Well I guess we could say something like:
>>>>
>>>> FOREIGN KEY (a-col) WHERE (a-condition) REFERENCES b(b-col) WHERE
>>>> (b-condition)
>>>>
>
> I like what you have above.

Yeah. Given both the apparent ambiguity of the current placement, and the fact that the current placement would be
rightwhere you’d put a where clause on the referenced table, that’s the only sane way to do it. And it’s not so bad. 

Cheers

Tom


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Extension Templates S03E11
Следующее
От: Tom Dunstan
Дата:
Сообщение: Re: Proposed feature: Selective Foreign Keys