nested transactions

From: James Gregory <james(at)anchor(dot)net(dot)au>
To: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: nested transactions
Date: 2003-03-14 15:11:47
Message-ID: 1047654707.28887.2.camel@pirate.bridge.anchor.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I am writing a stored procedure where it is absolutely necessary that it
be executed within a single transaction block. Now, postgres doesn't
support nested transactions, and that's ok, it's not really what I want.
I want to know how to test whether or not a piece of sql that is
executing is doing so inside a transaction. If it is, I'll let it be,
otherwise I want to set a flag to start one and commit at the end of the
function.

Is there a way to do this?

Thanks,

James.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2003-03-14 15:12:32 contrib/lo and restoring databases
Previous Message Charles Lewis 2003-03-14 14:55:01 Where is the 7.3.2 Windows binary? (N/T)