Re: Error handling in plperl and pltcl - Mailing list pgsql-hackers

From Thomas Hallgren
Subject Re: Error handling in plperl and pltcl
Date
Msg-id thhal-04i2JAlFRcC4yUi8pxQkJIq22g0eQWZ@mailblocks.com
Whole thread Raw
In response to Re: Error handling in plperl and pltcl  (Richard Huxton <dev@archonet.com>)
List pgsql-hackers
Richard Huxton,

> It feels more distinct to me. I'll grant you I'm only a sample size of 
> 1 though.

Perhaps more distinct, but:

- Using savepoints together with try/catch is not exactly an unknown 
concept. Try Google and you'll see a fair amount of examples advocating 
the approach that I suggest.
- If I have to learn yet another new thing, I'd like to learn how to use 
savepoints since that knowledge can be used everywhere.
- There's no such thing as a pgtry in the Tcl language (nor in any other 
language), thus you change the language as such.
- Tcl code will look different depending on if it's client code or code 
residing in the backend. I.e. the construct is not portable. Then again, 
perhaps the Tcl bindings are very different anyway so that argument may 
be less important. For PL/Java it makes a lot of sense since the client 
and server implementation uses a common set of interfaces.

Regards,
Thomas Hallgren




pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: [PATCHES] plperl Safe restrictions
Next
From: Chris Green
Date:
Subject: Re: Adding Reply-To: to Lists configuration ...