Re: Transaction-scope advisory locks
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>
Cc: Szymon Guz <mabewlun@gmail.com>, pgsql-hackers@postgresql.org
Date: 2010-12-14T17:05:28Z
Lists: pgsql-hackers
Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi> writes: > On 2010-12-14 4:23 AM +0200, Tom Lane wrote: >> Uh, I don't think so. It sure looks like you have changed the user >> lockmethod to be transactional, ie, auto-release on commit/abort. > I was under the impression that passing sessionLock=true to > LockAcquire(), combined with allLocks=false to LockReleaseAll() would be > enough to prevent that from happening. My tests seem to agree with this. > Am I missing something? All the places that look at LockMethodData->transactional ? regards, tom lane