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

From Richard Huxton
Subject Re: Error handling in plperl and pltcl
Date
Msg-id 41AC4143.4000503@archonet.com
Whole thread Raw
In response to Re: Error handling in plperl and pltcl  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Error handling in plperl and pltcl
Re: Error handling in plperl and pltcl
List pgsql-hackers
Tom Lane wrote:
> The real point here is that omitting the per-command subtransaction
> ought to be a hidden optimization, not something that intrudes to the
> point of having unclean semantics when we can't do it.

Sorry to be stupid here, but I didn't understand this when it was 
disussed originally either. Why a subtransaction per command rather than 
one per function? If I've got this right, this is so the PL can tidy up 
behind itself and report/log an appropriate error?

--  Richard Huxton  Archonet Ltd


pgsql-hackers by date:

Previous
From: "Michael Paesold"
Date:
Subject: Re: 8.0beta5 results w/ dbt2
Next
From: Thomas Hallgren
Date:
Subject: Re: Error handling in plperl and pltcl