PL/SQL Function: self-contained transaction? - Mailing list pgsql-sql

From Marc G. Fournier
Subject PL/SQL Function: self-contained transaction?
Date
Msg-id 20050822141357.B1002@ganymede.hub.org
Whole thread Raw
Responses Re: PL/SQL Function: self-contained transaction?
Re: PL/SQL Function: self-contained transaction?
List pgsql-sql
In PostgreSQL, as everyone knows, a QUERY == a transaction, unless wrap'd 
in a BEGIN/END explicitly ... how does that work with a function?  is 
there an implicit BEGIN/END around the whole transaction, or each QUERY 
within the function itself?

If the whole function (and all QUERYs inside of it) are considered one 
transaction, can you do a begin/end within the function itself to 'force' 
commit on a specific part of the function?

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


pgsql-sql by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: A Table's Primary Key Listing
Next
From: Greg Stark
Date:
Subject: Re: PL/SQL Function: self-contained transaction?