PL/SQL Function: self-contained transaction?

From: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: PL/SQL Function: self-contained transaction?
Date: 2005-08-22 17:16:30
Message-ID: 20050822141357.B1002@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2005-08-22 18:15:08 Re: PL/SQL Function: self-contained transaction?
Previous Message Alvaro Herrera 2005-08-22 15:12:54 Re: A Table's Primary Key Listing