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

Re: Transaction with in function

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Ravi Katkar" <Ravi(dot)Katkar(at)infor(dot)com>, "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Transaction with in function
Date: 2010-05-26 16:13:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Ravi Katkar <Ravi(dot)Katkar(at)infor(dot)com> wrote:
> I know that postgresql does not support nested transactions,
> I looking for solution for commit, rollback with in function. May
> be using the save point.
That is essentially the same as nested transactions, isn't it?  Just
using SQL standard syntax?
> I were to use save point in function , when it would get commit.?
Each savepoint creates a subtransaction which will be included in
the top level transaction unless it or an intermediate savepoint is
rolled back.  Nothing from the top level transaction is visible to
other transactions until the commit of the top level transaction.
If this and the docs don't make it clear, please post again:
If you do post again, please include your PostgreSQL version and an
explanation of what problem you're trying to solve.  More specific
questions tend to elicit more useful responses:

In response to

pgsql-admin by date

Next:From: Maria L. WilsonDate: 2010-05-26 18:33:01
Subject: Indexes advantageous on foreign key columns
Previous:From: Kasia TuszynskaDate: 2010-05-26 15:45:48
Subject: future development of xml capabilities

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