pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Transaction with in function
2+ messages / 2 participants
[nested] [flat]

* Transaction with in function
@ 2010-05-26 10:35 Ravi Katkar <Ravi.Katkar@infor.com>
  2010-05-26 16:13 ` Re: Transaction with in function Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 1 reply; 2+ messages in thread

From: Ravi Katkar @ 2010-05-26 10:35 UTC (permalink / raw)
  To: pgsql-admin


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.

I were to use save point in function , when it would get commit.?



Thanks in advance .

Regards
Ravi Katkar

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Transaction with in function
  2010-05-26 10:35 Transaction with in function Ravi Katkar <Ravi.Katkar@infor.com>
@ 2010-05-26 16:13 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2010-05-26 16:13 UTC (permalink / raw)
  To: Ravi Katkar <Ravi.Katkar@infor.com>; pgsql-admin

Ravi Katkar <Ravi.Katkar@infor.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:
 
http://www.postgresql.org/docs/8.4/interactive/sql-savepoint.html
 
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:
 
-Kevin



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-05-26 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-05-26 10:35 Transaction with in function Ravi Katkar <Ravi.Katkar@infor.com>
2010-05-26 16:13 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox