Hi all

I see heap_tuple_toast_attrs() calls in heapam.c.
When they are called from heap_update/delete()
,a buffer is locked.
OTOH heap_tuple_toast_attrs() calls heap_open(..,
.., RowExclusiveLock). Hmm,try to acquire a
RowExclusiveLock while locking a buffer.
Is there no problem ?

Regards.

Hiroshi Inoue


Wed, 18 Oct 2000 18:39:53 +0900
Hiroshi Inoue <Inoue@tpf.co.jp>
toast operations while locking a buffer
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> I see heap_tuple_toast_attrs() calls in heapam.c.
> When they are called from heap_update/delete()
> ,a buffer is locked.

Hm.  Seems like it would be better to do the tuple toasting before
we lock the target buffer...

			regards, tom lane

Wed, 18 Oct 2000 12:07:59 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: toast operations while locking a buffer 