Re: help with locked table(s)/transactions(s) - Mailing list pgsql-general

From Mott Leroy
Subject Re: help with locked table(s)/transactions(s)
Date
Msg-id 43E0CD65.4080709@acadaca.com
Whole thread Raw
In response to Re: help with locked table(s)/transactions(s)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> No, the locks would be held till end of transaction.  It is a little odd
> that you have so many conflicts, though, unless the referenced table is
> pretty small and/or this loop manages to touch a large fraction of the
> possible keys.

Ah, well, if the locks are held to the end of the transaction that would
explain it I think. I mean, the loop touches *every* row (UPDATEs) in
one of the tables. It sounds like I need to break up this function into
a smaller function (by placing the loop outside the transaction).

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Help in compiling 8.1.2 from source
Next
From: Bruce Momjian
Date:
Subject: Re: Passwords when changing users -> roles