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

From Jan Wieck
Subject Re: Deferred constraints and locks...
Date
Msg-id 47B30988.3070905@Yahoo.com
Whole thread Raw
In response to Re: Deferred constraints and locks...  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Deferred constraints and locks...
List pgsql-general
On 2/12/2008 3:04 PM, Tom Lane wrote:
> Nathan Wilhelmi <wilhelmi@ucar.edu> writes:
>> 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.
>
> Insert statements would naturally take RowExclusiveLock, but that
> doesn't block other DML operations.  So the question is what *else*
> are you doing?

Those SELECT statements aren't by chance FOR UPDATE, are they?


Jan

--
Anyone who trades liberty for security deserves neither
liberty nor security. -- Benjamin Franklin


pgsql-general by date:

Previous
From: Koen Vermeer
Date:
Subject: Re: Storing images as BYTEA or large objects
Next
From: Reece Hart
Date:
Subject: Re: dynamic crosstab