Re: pl/python explicit subtransactions

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: Steve Singer <ssinger_pg@sympatico.ca>
Cc: Jan Urbański <wulczer@wulczer.org>, Postgres - Hackers <pgsql-hackers@postgresql.org>
Date: 2011-02-09T22:22:04Z
Lists: pgsql-hackers
On tis, 2011-02-08 at 00:32 -0500, Steve Singer wrote:
> On 11-02-06 11:40 AM, Jan Urbański wrote:
> 
> > PFA an updated patch with documentation.
> 
> > Yeah, changed them.
> 
> Those changes look fine.  The tests now pass.
> 
> I've attached a new version of the patch that fixes a few typos/wording 
> issues I saw in the documentation.  I also changed the link to the 
> python reference manual section on context managers. I think it is 
> better to link to that versus the original PEP.
> 
> The documentation could probably still use more word-smithing but that 
> can happen later.  I'm marking this as ready for a committer.

Is it necessarily a good idea that an explicit subtransaction disables
the implicit sub-subtransactions?  It might be conceivable that you'd
still want to do some try/catch within explicit subtransactions.