pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Barry Lind <blind@xythos.com>
Cc: Alvaro Herrera <alvherre@dcc.uchile.cl>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Patches <pgsql-patches@postgresql.org>
Subject: Re: Nested transactions
Date: Fri, 18 Jun 2004 18:47:10 -0400
Message-ID: <4213.1087598830@sss.pgh.pa.us> (raw)
In-Reply-To: <40D24FAE.3030903@xythos.com>
References: <20040608222356.GC13820@dcc.uchile.cl>
	<1087425935.12015.1154.camel@stromboli>
	<20040617014359.GA5925@dcc.uchile.cl>
	<40D24FAE.3030903@xythos.com>

Barry Lind <blind@xythos.com> writes:
> I like the functionality of nested transactions, I just think that there 
> needs to be different commands other than BEGIN/COMMIT to work with 
> them.  So that there is no possiblity for misunderstanding what COMMIT 
> really means.

There's something to be said for that view.  Another thing in its favor
is that if we choose names like SUBBEGIN and SUBCOMMIT, then we get rid
of the syntax conflict with plpgsql's BEGIN/END.  A function cannot
legally issue a true COMMIT, as it has to be inside an outer transaction
--- so it only needs to be able to say SUBBEGIN and SUBCOMMIT.

I'm not at all wedded to those particular names, of course.  Just
thinking that it'd simplify life if they were spelled differently than
BEGIN and END.

			regards, tom lane



view thread (19+ messages)  latest in thread

Message-ID: <4213.1087598830@sss.pgh.pa.us>
Permalink:  ../4213.1087598830@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4213.1087598830@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 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-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, blind@xythos.com, alvherre@dcc.uchile.cl, simon@2ndquadrant.com, pgsql-patches@postgresql.org
  Subject: Re: Nested transactions
  In-Reply-To: <4213.1087598830@sss.pgh.pa.us>
  References: <20040608222356.GC13820@dcc.uchile.cl> <1087425935.12015.1154.camel@stromboli> <20040617014359.GA5925@dcc.uchile.cl> <40D24FAE.3030903@xythos.com> <4213.1087598830@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