Re: TODO: Add a GUC to control whether BEGIN inside - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: TODO: Add a GUC to control whether BEGIN inside
Date
Msg-id 20070102164236.GC21867@alvh.no-ip.org
Whole thread Raw
In response to Re: TODO: Add a GUC to control whether BEGIN inside  ("news.postgresql.org" <smith@pooteeweet.org>)
Responses Re: TODO: Add a GUC to control whether BEGIN inside  (Lukas Kahwe Smith <smith@pooteeweet.org>)
Re: TODO: Add a GUC to control whether BEGIN inside  (Lukas Kahwe Smith <smith@pooteeweet.org>)
List pgsql-hackers
news.postgresql.org wrote:

> While we are on the topic, I have implemented a poor mans nested 
> transaction feature into my database access layer. essentially 
> subsequent calls to begin a transaction after the initial begin simply 
> increase an internal counter and set a savepoint. as you commit the 
> transactions the counter is decreased and the savepoints are released. 
> maybe this could be implemented inside postgresql to make the life of 
> modular programmers easier?

Yeah, it's called "SAVEPOINT foo" and "RELEASE foo".

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: "news.postgresql.org"
Date:
Subject: Re: TODO: Add a GUC to control whether BEGIN inside
Next
From: Lukas Kahwe Smith
Date:
Subject: Re: TODO: Add a GUC to control whether BEGIN inside