X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3DA443A4B0E for ; Fri, 19 Nov 2004 17:09:29 +0000 (GMT) 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 83420-02 for ; Fri, 19 Nov 2004 17:09:11 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4CC683A4B3F for ; Fri, 19 Nov 2004 17:09:10 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iAJH8odX029319; Fri, 19 Nov 2004 12:08:50 -0500 (EST) To: Michael Fuhr Cc: Richard Huxton , abief_ag_-postgresql@yahoo.com, pgsql-sql@postgresql.org Subject: Re: transactions in functions, possible bug or what I'm doing In-reply-to: <20041119162309.GA77593@winnie.fuhr.org> References: <20041119115231.27648.qmail@web13924.mail.yahoo.com> <419DEE1B.6010805@archonet.com> <20041119162309.GA77593@winnie.fuhr.org> Comments: In-reply-to Michael Fuhr message dated "Fri, 19 Nov 2004 09:23:09 -0700" Date: Fri, 19 Nov 2004 12:08:50 -0500 Message-ID: <29318.1100884130@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/199 X-Sequence-Number: 19518 Michael Fuhr writes: > On Fri, Nov 19, 2004 at 12:59:07PM +0000, Richard Huxton wrote: >> You can have what are called "savepoints" in version 8.0 though, which >> lets you trap errors and rollback to a named (saved) point in your function. > Savepoints in functions don't work as of 8.0.0beta4, unless I'm > doing something wrong: You can't use explicit savepoint commands, but the exception syntax does essentially the same thing implicitly. regards, tom lane