Re: Sketch of extending error handling for subtransactions in functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Sketch of extending error handling for subtransactions in functions
Date
Msg-id 200407291644.16342.peter_e@gmx.net
Whole thread Raw
In response to Sketch of extending error handling for subtransactions in functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Sketch of extending error handling for subtransactions in functions
List pgsql-hackers
Am Sonntag, 25. Juli 2004 01:48 schrieb Tom Lane:
> One issue is that it may break existing PLs that override Warn_restart,
> since the semantics of doing that will have changed a bit.  We can
> easily fix the PLs that are in our own CVS, but what are the
> implications for other PLs such as PL/R and PL/SH?  Joe, Peter, any
> comments?

PL/sh is OK, but both PL/Ruby and PL/Java play around with Warn_restart.  

> I am somewhat tempted to rename the setjmp variable Warn_restart to
> something else, so as to catch any code that is still expecting the
> old behavior (besides, it was never a very good name anyway).  On the
> other hand, there may be cases where a PL's code doesn't actually need
> to change, and if so a rename would just break it unnecessarily.  Any
> votes which way to jump?

Maybe the authors (in Cc) can comment what support they need.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: more signals (was: Function to kill backend)
Next
From: Tom Lane
Date:
Subject: Re: Sketch of extending error handling for subtransactions in functions