Re: Proposed feature: Selective Foreign Keys - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Proposed feature: Selective Foreign Keys
Date
Msg-id 529D3844.3030707@2ndquadrant.com
Whole thread Raw
In response to Proposed feature: Selective Foreign Keys  (Tom Dunstan <pgsql@tomd.cc>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Extension Templates S03E11
Next
From: Tom Lane
Date:
Subject: Re: UNNEST with multiple args, and TABLE with multiple funcs