Re: Transactions within a function body

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
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:28:13
Message-ID: 1510.1222961293@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Reg Me Please escribi:
>> 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.

Yeah, it's essentially the same functionality as savepoints, but
different syntax.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob Henkel 2008-10-02 15:30:40 Re: Transactions within a function body
Previous Message Reg Me Please 2008-10-02 15:18:59 Re: Transactions within a function body

Browse pgsql-hackers by date

  From Date Subject
Next Message Gurjeet Singh 2008-10-02 15:30:52 Re: Transactions within a function body
Previous Message Jonah H. Harris 2008-10-02 15:27:00 Re: Block-level CRC checks