Skip site navigation (1) Skip section navigation (2)

Re: Transactions within a function body

From: "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "PGSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Cc: "Reg Me Please" <regmeplease(at)gmail(dot)com>, "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "Dennis Brakhane" <brakhane(at)googlemail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Transactions within a function body
Date: 2008-10-02 15:30:52
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackers
On Thu, Oct 2, 2008 at 8:40 PM, Alvaro Herrera

> Reg Me Please escribió:
> > Il Thursday 02 October 2008 16:15:10 Alvaro Herrera ha scritto:
> > > You can nest blocks arbitrarily, giving you the chance to selectively
> > > rollback pieces of the function.  It's only a bit more awkward.
> >
> > You mean I can issue a ROLLBACK command within a BEGIN...END; block to
> roll it
> > back?
> No -- I mean you can use BEGIN/EXCEPTION/END blocks as you like, nesting
> them or putting one after another.  Complementing this with RAISE
> EXCEPTION you can cause savepoints to roll back at will.

I have seen this feature being asked for, and this work-around suggested so
many times. If plpgql does it internally, why not provide a clean interface
for this? Is there some road-block, or that nobody has ever tried it?

If there are no known limitations, I'd like to start work on it.

Best regards,
singh(dot)gurjeet(at){ gmail | hotmail | indiatimes | yahoo }.com


Mail sent from my BlackLaptop device

In response to


pgsql-hackers by date

Next:From: Robert TreatDate: 2008-10-02 15:32:16
Subject: Re: FSM rewrite committed, loose ends
Previous:From: Tom LaneDate: 2008-10-02 15:28:13
Subject: Re: Transactions within a function body

pgsql-general by date

Next:From: Matthew TerenzioDate: 2008-10-02 15:31:23
Subject: Re: tsearch 2 query
Previous:From: Bob HenkelDate: 2008-10-02 15:30:40
Subject: Re: Transactions within a function body

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group