X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3C9819FB20D for ; Thu, 27 Jul 2006 23:35:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 82379-10 for ; Thu, 27 Jul 2006 23:34:49 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.196]) by postgresql.org (Postfix) with ESMTP id 25BD59FB223 for ; Thu, 27 Jul 2006 23:34:16 -0300 (ADT) Received: by nz-out-0102.google.com with SMTP id 13so106149nzn for ; Thu, 27 Jul 2006 19:33:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=rTPwMrx7txSsAANtYth8ia0R7ruksynihCetmx16iG3pnA7bIWjeilc+DZz8s5FbAssNmA0s47+vX/WOexjq1qeNPWOQOX+5bf3bTpWJq+38mEkdwQNVbinprsFdLYVZ9YnPgr61MsmGf4JaorYLHQYziGfB9DXHmU6JBHMuEQA= Received: by 10.65.81.19 with SMTP id i19mr1176215qbl; Thu, 27 Jul 2006 19:33:38 -0700 (PDT) Received: by 10.64.179.18 with HTTP; Thu, 27 Jul 2006 19:33:38 -0700 (PDT) Message-ID: <5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com> Date: Thu, 27 Jul 2006 22:33:38 -0400 From: "Denis Lussier" To: "Tom Lane" Subject: Re: Savepoint performance Cc: pgsql-performance@postgresql.org In-Reply-To: <15026.1154050477@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1154020755.1634.509.camel@archimedes> <20060727193520.GG18774@surnet.cl> <5f820f750607271813m454dec68rd0e985deefeaa37e@mail.gmail.com> <15026.1154050477@sss.pgh.pa.us> X-Google-Sender-Auth: 568a2582a6bdd4ab X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.267 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200607/255 X-Sequence-Number: 20115 My understanding of EDB's approach is that our prototype just implicitly does a savepoint before each INSERT, UPDATE, or DELETE statement inside of PLpgSQL. We then rollback to that savepoint if a sql error occurs. I don 't believe our prelim approach changes any transaction start/end semantics on the server side and it doesn't change any PLpgSQL syntax either (although it does allow you to optionally code commits &/or rollbacks inside stored procs). Can anybody point me to a thread on the 7.3 disastrous experiment? I personally think that doing commit or rollbacks inside stored procedures is usually bad coding practice AND can be avoided... It's a backward compatibility thing for non-ansi legacy stuff and this is why I was previously guessing that the community wouldn't be interested in this for PLpgSQL. Actually... does anybody know offhand if the ansi standard for stored procs allows for explicit transaction control inside of a stored procedure? --Luss On 7/27/06, Tom Lane wrote: > "Denis Lussier" writes: > > Would the community be potentially interested in this feature if we created > > a BSD Postgres patch of this feature for PLpgSQL (likely for 8.3)?? > > Based on our rather disastrous experiment in 7.3, I'd say that fooling > around with transaction start/end semantics on the server side is > unlikely to fly ... > > regards, tom lane >