pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Fuhr <mike@fuhr.org>
Cc: Richard Huxton <dev@archonet.com>
Cc: abief_ag_-postgresql@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: transactions in functions, possible bug or what I'm doing
Date: Fri, 19 Nov 2004 12:08:50 -0500
Message-ID: <29318.1100884130@sss.pgh.pa.us> (raw)
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>

Michael Fuhr <mike@fuhr.org> 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



view thread (4+ messages)

Message-ID: <29318.1100884130@sss.pgh.pa.us>
Permalink:  ../29318.1100884130@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29318.1100884130@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, mike@fuhr.org, dev@archonet.com, abief_ag_-postgresql@yahoo.com
  Subject: Re: transactions in functions, possible bug or what I'm doing
  In-Reply-To: <29318.1100884130@sss.pgh.pa.us>

* 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