Re: deferred foreign keys

From: Vivek Khera <khera(at)kcilink(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: deferred foreign keys
Date: 2003-12-31 17:17:50
Message-ID: x73cb0c3ep.fsf@yertle.int.kciLink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

One more question: does the FK checker know to skip checking a
constraint if the column in question did not change during an update?

That is, if I have a user table that references an owner_id in an
owners table as a foreign key, but I update fields other than owner_id
in the user table, will it still try to verify that owner_id is a
valid value even though it did not change?

I'm using PG 7.4.

Thanks.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera(at)kciLink(dot)com Rockville, MD +1-301-869-4449 x806
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message cnliou 2004-01-01 17:14:02 pg_restore makes disk busy
Previous Message Jonathan Gardner 2003-12-30 16:32:38 DELETE ... WHERE ctid IN (...) vs. Iteration