Re: Sketch of extending error handling for subtransactions in functions

From: Thomas Hallgren <thhal(at)mailblocks(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgreSQL(dot)org, Guy Decoux <ts(at)moulon(dot)inra(dot)fr>
Subject: Re: Sketch of extending error handling for subtransactions in functions
Date: 2004-07-29 14:56:44
Message-ID: thhal-0LqjkARugUNsH/g2P/9rOQql8O6zKSh@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

>Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>
>
>>PL/sh is OK, but both PL/Ruby and PL/Java play around with Warn_restart.
>>
>>
>
>Are they using it to fake try/catch behavior? If so, see later thread
>about moving to a simple set of try/catch macros.
>
>I currently have this up and seemingly working for the main backend,
>but I still need to look at revising pltcl and plpython to match.
>I think that will be straightforward, but you never know till it's
>done...
>
> regards, tom lane
>
>
I'm using macros to fake try/catch behavior in PL/Java. I see no
immedate problem switching to a supported version of the macros.

Regards,

Thomas Hallgren

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew T. O'Connor 2004-07-29 15:21:29 Re: extra info on autovaccum log
Previous Message Magnus Hagander 2004-07-29 14:51:52 Re: more signals (was: Function to kill backend)