pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: cluster <skrald@amossen.dk>
Cc: pgsql-performance@postgresql.org
Subject: Re: FK triggers misused?
Date: Mon, 16 Apr 2007 19:55:06 -0400
Message-ID: <12251.1176767706@sss.pgh.pa.us> (raw)
In-Reply-To: <f00vq0$2ncr$1@news.hub.org>
References: <evqm6g$29b1$1@news.hub.org>
	<26399.1176614941@sss.pgh.pa.us>
	<slrnf23eqp.10cj.andrew+nonews@atlantis.supernews.net>
	<102.1176650563@sss.pgh.pa.us>
	<slrnf258g3.10cj.andrew+nonews@atlantis.supernews.net>
	<f00vq0$2ncr$1@news.hub.org>

Idly thumbing through the code, I came across something that might
possibly explain your results.  Do the rows being updated contain
NULLs in the foreign-key columns?  I see that ri_KeysEqual() treats
two null values as not equal, which might be overzealous respect for
SQL null semantics in this context.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <12251.1176767706@sss.pgh.pa.us>
Permalink:  ../12251.1176767706@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12251.1176767706@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, skrald@amossen.dk
  Subject: Re: FK triggers misused?
  In-Reply-To: <12251.1176767706@sss.pgh.pa.us>

* 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