On 12/4/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> > we should remember the CurrentResourceOwner
> > across BIST() and RARCST() calls!
>
> As indeed the current callers of them do...
>
Thanks. I missed that piece of code in pl/pgsql exception handling!!!
So, if I use kludge the code like:
oldResourceOwner = CurrentResourceOwner;
BIST();
... do stuff ...
RARCST();
CurrentResourceOwner = oldResourceOwner;
it would be a standard way of doing it.
Best regards,
--
gurjeet[(dot)singh](at)EnterpriseDB(dot)com
singh(dot)gurjeet(at){ gmail | hotmail | yahoo }.com