From: Sri <asrinivas@effigent.net>
To: pgsql-sql@postgresql.org
Subject: Problem while using start transaction ans commit;
Date: Mon, 17 Oct 2005 12:53:04 +0530
Message-ID: <CBB4890A6A6A4F009B5E715B9B3EDA20@effigent.org> (raw)
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
start transaction read write;
-- set of sql statements and then say commit.
commit;
but this is not working it is showing the the following error near start transaction read write
" ERROR: SPI_execute_plan failed executing query "start transaction read write": SPI_ERROR_TRANSACTION ";
or
if i use only commit with out the start transaction command it throwing the runtime error
as
" ERROR: SPI_execute_plan failed executing query "commit": SPI_ERROR_TRANSACTION ";
Can any one send me an example of how to use the start transaction or how to commit an nested transaction.
Thanks in advance.
Thanks & Regards,
Sri
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: asrinivas@effigent.net
Subject: Re: Problem while using start transaction ans commit;
In-Reply-To: <CBB4890A6A6A4F009B5E715B9B3EDA20@effigent.org>
* 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