Re: Tweaking Foreign Keys for larger tables - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Tweaking Foreign Keys for larger tables
Date
Msg-id 545BF14C.4020602@BlueTreble.com
Whole thread Raw
In response to Re: Tweaking Foreign Keys for larger tables  (David G Johnston <david.g.johnston@gmail.com>)
List pgsql-hackers
On 11/6/14, 11:49 AM, David G Johnston wrote:
>     > Constraint would add a statement-level after trigger for insert,
>     > update, delete and trigger, which issues a relcache invalidation if
>     > the state was marked valid. Marked as deferrable initially deferred.
>     I don't think you'd need to invalidate on insert,
>
>
> ​Why?  Since the FK is not enforced there is no guarantee that what you just inserted is valid

I'm talking about the referenced (aka 'parent') table, not the referring table.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: group locking: incomplete patch, just for discussion
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] ltree::text not immutable?