Re: [HACKERS] Relocation of tuple between release and re-acquire of tuple lock

2016-08-12 Thread Alexander Korotkov
On Fri, Aug 12, 2016 at 3:15 PM, Alexander Korotkov < a.korot...@postgrespro.ru> wrote: > I'm now exploring code working with heap tuples. The following code > in heap_update() catch my eyes. > > if (DoesMultiXactIdConflict((MultiXactId) xwait, infomask, >> *lockmode)) >> { >> LockBuffer(buffer,

[HACKERS] Relocation of tuple between release and re-acquire of tuple lock

2016-08-12 Thread Alexander Korotkov
Hackers, I'm now exploring code working with heap tuples. The following code in heap_update() catch my eyes. if (DoesMultiXactIdConflict((MultiXactId) xwait, infomask, > *lockmode)) > { > LockBuffer(buffer, BUFFER_LOCK_UNLOCK); > /* acquire tuple lock, if necessary */ > heap_acquire_tuplock(rela