pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Denis Lussier <denisl@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Savepoint performance
Date: Thu, 27 Jul 2006 22:33:38 -0400
Message-ID: <5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com> (raw)
In-Reply-To: <15026.1154050477@sss.pgh.pa.us>
References: <1154020755.1634.509.camel@archimedes>
	<20060727193520.GG18774@surnet.cl>
	<5f820f750607271813m454dec68rd0e985deefeaa37e@mail.gmail.com>
	<15026.1154050477@sss.pgh.pa.us>

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 <tgl@sss.pgh.pa.us> wrote:
> "Denis Lussier" <denisl@enterprisedb.com> 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
>



view thread (7+ messages)  latest in thread

Message-ID: <5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com>
Permalink:  ../5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com/
Also on:    postgresql.org/message-id/5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: denisl@enterprisedb.com, tgl@sss.pgh.pa.us
  Subject: Re: Savepoint performance
  In-Reply-To: <5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com>
  References: <1154020755.1634.509.camel@archimedes> <20060727193520.GG18774@surnet.cl> <5f820f750607271813m454dec68rd0e985deefeaa37e@mail.gmail.com> <15026.1154050477@sss.pgh.pa.us> <5f820f750607271933p5367b755ya88e41891b126983@mail.gmail.com>

* 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