Re: internal subtransactions, memory contexts, resource owners

2021-11-24 Thread Tom Lane
Chapman Flack writes: > By inspection of plperl and plpython, it looks like the canonical pattern > for a PL using internal subtransactions is: > save CurrentMemoryContext > save CurrentResourceOwner > BeginInternalSubTransaction > reimpose the saved memory context > // but not the saved resource

internal subtransactions, memory contexts, resource owners

2021-11-24 Thread Chapman Flack
Hi, By inspection of plperl and plpython, it looks like the canonical pattern for a PL using internal subtransactions is: save CurrentMemoryContext save CurrentResourceOwner BeginInternalSubTransaction reimpose the saved memory context // but not the saved resource owner ... (RollbackAnd)?Releas