Re: Proposed feature: Selective Foreign Keys

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Proposed feature: Selective Foreign Keys
Дата
Msg-id 529D3844.3030707@2ndquadrant.com
обсуждение исходный текст
Ответ на Proposed feature: Selective Foreign Keys  (Tom Dunstan <pgsql@tomd.cc>)
Список pgsql-hackers
On 11/28/2013 09:15 AM, Tom Dunstan wrote:
> Feature Proposal: Selective foreign keys.
> -------------------------------------------------
> Allow foreign keys to have where clauses.

I haven't caught up on the discussion yet, but: if you can swing this,
it'd also be very useful for RLS, providing a remotely sane way to
handle foreign key constraints in data models where the RLS constraint
is the same on all tables and doesn't get changed (e.g. multi-tenant).

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



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Extension Templates S03E11
Следующее
От: Tom Lane
Дата:
Сообщение: Re: UNNEST with multiple args, and TABLE with multiple funcs