Re: function transaction scope question

From: John DeSoi <desoi(at)pgedit(dot)com>
To: "Wright, George" <George(dot)Wright(at)infimatic(dot)com>
Cc: "PostgreSQL List - Novice" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: function transaction scope question
Date: 2009-01-14 14:59:14
Message-ID: FF8529EE-AF9F-4277-8468-8A1451893576@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Jan 14, 2009, at 9:41 AM, Wright, George wrote:

> If a function in PL/pgSQL is wrapped by a transaction, does that
> same single transaction encompass other functions defined elsewhere
> that this function calls?

Yes, they all share the same transaction scope. And PL/pgSQL functions
cannot change the transaction state (i.e. call commit or start a new
transaction).

John DeSoi, Ph.D.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Christopher Browne 2009-01-14 15:47:54 Re: function transaction scope question
Previous Message Wright, George 2009-01-14 14:41:33 function transaction scope question