Re: deferred foreign keys

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Vivek Khera <khera(at)kcilink(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: deferred foreign keys
Date: 2004-01-05 18:38:59
Message-ID: 20040105183859.GA28448@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Jan 05, 2004 at 11:33:40 -0500,
Vivek Khera <khera(at)kcilink(dot)com> wrote:
>
> Thanks. Then it sorta makes it moot for me to try deferred checks,
> since the Pimary and Foreign keys never change once set. I wonder
> what is making the transactions appear to run lockstep, then...

I think this is probably the issue with foreign key checks needing an
exclusive lock, since there is no shared lock that will prevent deletes.
This problem has been discussed a number of times on the lists and you
should be able to find out more information from the archives if you
want to confirm that this is the root cause of your problems.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message David Teran 2004-01-05 18:47:28 Re: optimizing Postgres queries
Previous Message John Siracusa 2004-01-05 18:15:56 Re: Use my (date) index, darn it!