Deferred constraints and locks... - Mailing list pgsql-general

From Nathan Wilhelmi
Subject Deferred constraints and locks...
Date
Msg-id 47B1E661.2020203@ucar.edu
Whole thread Raw
Responses Re: Deferred constraints and locks...
List 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


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: end of life for pg versions...
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Some Autovacuum Questions