Transactions within a function body

From: Reg Me Please <regmeplease(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Transactions within a function body
Date: 2008-10-01 15:54:01
Message-ID: 200810011754.01357.regmeplease@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Hi all.

Is there a way to have (sub)transactions within a function body?
I'd like to execute some code (a transaction!) inside a function and later
decide whether that transaction is to be committed or not.

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gauthier, Dave 2008-10-01 16:04:14 Re: pg_restore stalled ???
Previous Message Tom Lane 2008-10-01 15:52:14 Re: pg_restore stalled ???

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2008-10-01 15:54:17 Re: Block-level CRC checks
Previous Message pgsql 2008-10-01 15:37:35 Re: Block-level CRC checks