Re: Error handling in plperl and pltcl

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error handling in plperl and pltcl
Date: 2004-11-20 19:10:34
Message-ID: 878y8w2v6d.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> (I'm sure we can do more to speed up subtransaction entry/exit than we have
> so far.)

Is there anything that can be done to short circuit the _first_ layer of
subtransaction? I'm thinking there will be many cases like this where there's
one implicit subtransaction that users don't even know is there. in particular

I'm thinking of psql introducing a subtransaction on every query to allow
recovery from typos and other errors. Drivers may do something similar to
allow the application to catch errors using language constructs like
exceptions and recover.

In many environments there will be one layer of subtransaction on every query.

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message James William Pye 2004-11-20 19:15:36 Re: Error handling in plperl and pltcl
Previous Message Tom Lane 2004-11-20 18:59:18 Re: pgxs regression