From: Oliver Elphick <olly@lfix.co.uk>
To: Sri <asrinivas@effigent.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem while using start transaction ans commit;
Date: Wed, 19 Oct 2005 08:45:33 +0100
Message-ID: <1129707933.19925.5.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <CBB4890A6A6A4F009B5E715B9B3EDA20@effigent.org>
References: <CBB4890A6A6A4F009B5E715B9B3EDA20@effigent.org>
On Mon, 2005-10-17 at 12:53 +0530, Sri wrote:
> Hi All,
>
> I have a small problem in using nested transactions while working on
> Postgres 8.0.
>
> Ex: I have a function A() which in turn calls functions b() and c() ,
> if i want commit something in b or c. i have to use
You cannot start or commit a transaction inside a function. You can use
savepoints.
--
Oliver Elphick olly@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
Do you want to know God? http://www.lfix.co.uk/knowing_god.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: olly@lfix.co.uk, asrinivas@effigent.net
Subject: Re: Problem while using start transaction ans commit;
In-Reply-To: <1129707933.19925.5.camel@linda.lfix.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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