X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09D5ED9F71 for ; Wed, 19 Oct 2005 04:45:34 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65398-09 for ; Wed, 19 Oct 2005 07:45:31 +0000 (GMT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 171FCD9F2B for ; Wed, 19 Oct 2005 04:45:32 -0300 (ADT) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1ES8dg-000JMc-8B; Wed, 19 Oct 2005 07:45:32 +0000 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.50) id 1ES8dZ-0001Sg-34; Wed, 19 Oct 2005 08:45:25 +0100 Subject: Re: Problem while using start transaction ans commit; From: Oliver Elphick Reply-To: olly@lfix.co.uk To: Sri Cc: pgsql-sql@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: LFIX Limited Date: Wed, 19 Oct 2005 08:45:33 +0100 Message-Id: <1129707933.19925.5.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-LFIX-MailScanner-SpamCheck: not spam, SpamAssassin (score=-5.899, required 5, autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -2.60) X-LFIX-MailScanner-From: olly@lfix.co.uk X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.055 required=5 tests=[AWL=0.005, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/216 X-Sequence-Number: 23069 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