pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Vivek Khera <khera@kcilink.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: deferred foreign keys
Date: Fri, 02 Jan 2004 12:57:09 +0800
Message-ID: <3FF4FA25.7050802@familyhealth.com.au> (raw)
In-Reply-To: <x73cb0c3ep.fsf@yertle.int.kciLink.com>
References: <x7brpruzwq.fsf@yertle.int.kciLink.com>
	<x73cb0c3ep.fsf@yertle.int.kciLink.com>

> 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.

As of 7.4, yes the check is skipped.

Chris



view thread (11+ messages)  latest in thread

Message-ID: <3FF4FA25.7050802@familyhealth.com.au>
Permalink:  ../3FF4FA25.7050802@familyhealth.com.au/
Also on:    postgresql.org/message-id/3FF4FA25.7050802@familyhealth.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, khera@kcilink.com
  Subject: Re: deferred foreign keys
  In-Reply-To: <3FF4FA25.7050802@familyhealth.com.au>
  References: <x7brpruzwq.fsf@yertle.int.kciLink.com> <x73cb0c3ep.fsf@yertle.int.kciLink.com> <3FF4FA25.7050802@familyhealth.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox