Deferred constraints and locks...

From: Nathan Wilhelmi <wilhelmi(at)ucar(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Deferred constraints and locks...
Date: 2008-02-12 18:33:05
Message-ID: 47B1E661.2020203@ucar.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello - Trying to track down a lock contention problem, I have a process
that does a series of select / insert operations. At some point the
process grabs a series of RowExclusiveLock(s) and has the obvious effect
of stalling other processes. I logged all the statements and don't see
any for update or explicit lock statements. So I am guesses this is more
of an internal design issue. All the FKEY constraints are deferrable and
initially deferred, could this be causing pg to be pulling locks on rows
that are part of the fkey? Something else I should be looking for?

Thanks!
-Nate

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dean Gibson (DB Administrator) 2008-02-12 18:51:17 Re: SELECT CAST(123 AS char) -> 1
Previous Message Dave Cramer 2008-02-12 18:14:13 Re: deadlock while re-indexing table