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

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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

pgsql-hackers by date

Next:From: Jonah H. HarrisDate: 2008-10-01 15:54:17
Subject: Re: Block-level CRC checks
Previous:From: pgsqlDate: 2008-10-01 15:37:35
Subject: Re: Block-level CRC checks

pgsql-general by date

Next:From: Gauthier, DaveDate: 2008-10-01 16:04:14
Subject: Re: pg_restore stalled ???
Previous:From: Tom LaneDate: 2008-10-01 15:52:14
Subject: Re: pg_restore stalled ???

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