From:
Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To:
Reg Me Please <regmeplease(at)gmail(dot)com>
Cc:
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:10:23
Message-ID:
20081002151023.GB4151@alvh.no-ip.org (view raw or flat )
Thread:
2008-10-01 15:54:01 from Reg Me Please <regmeplease(at)gmail(dot)com>
2008-10-01 16:16:03 from Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
2008-10-01 21:20:47 from "Dennis Brakhane" <brakhane(at)googlemail(dot)com>
2008-10-02 00:34:42 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-10-02 09:01:37 from "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
2008-10-02 09:53:17 from Richard Huxton <dev(at)archonet(dot)com>
2008-10-02 10:31:47 from Reg Me Please <regmeplease(at)gmail(dot)com>
2008-10-02 11:49:06 from "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
2008-10-02 10:24:59 from Reg Me Please <regmeplease(at)gmail(dot)com>
2008-10-02 14:15:10 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-10-02 14:25:19 from Reg Me Please <regmeplease(at)gmail(dot)com>
2008-10-02 15:10:23 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-10-02 15:18:59 from Reg Me Please <regmeplease(at)gmail(dot)com>
2008-10-02 15:28:13 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-10-02 15:30:52 from "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>
2008-10-02 15:40:22 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-10-02 15:46:25 from "Bob Henkel" <bob(dot)henkel(at)gmail(dot)com>
2008-10-03 06:30:46 from "Asko Oja" <ascoja(at)gmail(dot)com>
Lists:
pgsql-general pgsql-hackers
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.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
In response to
Responses
pgsql-hackers by date
Next :From: Reg Me PleaseDate: 2008-10-02 15:18:59
Subject : Re: Transactions within a function body
Previous :From : Jonah H. HarrisDate : 2008-10-02 14:48:32
Subject : Re: Block-level CRC checks
pgsql-general by date
Next :From: Reg Me PleaseDate: 2008-10-02 15:18:59
Subject : Re: Transactions within a function body
Previous :From : Tom LaneDate : 2008-10-02 15:09:17
Subject : Re: tsearch 2 query