Re: Tweaking Foreign Keys for larger tables

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Tweaking Foreign Keys for larger tables
Дата
Msg-id 545BF14C.4020602@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Tweaking Foreign Keys for larger tables  (David G Johnston <david.g.johnston@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: group locking: incomplete patch, just for discussion
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] ltree::text not immutable?