Re: WHY transaction waits for another transaction? - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: WHY transaction waits for another transaction?
Date
Msg-id 20050619162209.GA19463@winnie.fuhr.org
Whole thread Raw
In response to Re: WHY transaction waits for another transaction?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-sql
On Sun, Jun 19, 2005 at 09:58:11AM -0600, Michael Fuhr wrote:
> 
> If possible, it would be best to commit transactions that insert
> or update foreign keys as soon as possible.

I probably shouldn't have said "best" here, implying that this
solution is better than all other possibilities.  As Tom Lane pointed
out, you could also make the constraints deferrable.  If you don't
need to know about foreign key violations immediately, then deferring
the checks might be a better way to go.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: WHY transaction waits for another transaction?
Next
From: Tom Lane
Date:
Subject: Re: Putting an INDEX on a boolean field?