pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Robert Zenz <robert.zenz@sibvisions.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Information on savepoint requirement within transctions
Date: Tue, 30 Jan 2018 09:03:18 +0100
Message-ID: <1517299398.2517.4.camel@cybertec.at> (raw)
In-Reply-To: <CAKFQuwYWCS8jwgE2favEUu+3djhMZTMf3LHBMWXy+h5k=3ccsA@mail.gmail.com>
References: <5A6B3F78.6030908@sibvisions.com>
	<CANu8Fixd_cKLouG_euktWHs12Nc7Ld5VXZ-qu13yuSs7HKnVPw@mail.gmail.com>
	<5A6B4A12.9000002@sibvisions.com>
	<CANu8FixBRh=+aKFDPtWc6o4o_++tOTDQSGDOBTsQ5AnfiiCFCQ@mail.gmail.com>
	<CAKFQuwYY+uMxpgmWm=V=E99GL8x53cY5-oBnnqGb8ZhTmcbznw@mail.gmail.com>
	<5A6EDD41.70005@sibvisions.com>
	<CAKFQuwbTro=vw6UxkGaR6DRdaPxGBOKTsLDJFWqD9Uz-n7gVXA@mail.gmail.com>
	<5A6F28A7.5080800@sibvisions.com>
	<CAKFQuwYWCS8jwgE2favEUu+3djhMZTMf3LHBMWXy+h5k=3ccsA@mail.gmail.com>

David G. Johnston wrote:
> > > It may be worth updating the docs here...
> > 
> So, my first pass at this.  I'm probably going a bit outside what would normally be covered in the SQL
> Command section but it does feel right at first blush.
> 
> Also attached; not compiled.
> 
> As a bug fix I've updated the description of "COMMIT" here since it can cause a ROLLBACK to be issued and that isn't documented.
> 
> "(pseudo) sub-transaction" seemed like a reasonable choice of terminology to introduce rather than just "mark".
> Having it mentioned in context in the BEGIN docs, instead of just a "see also", should aid in understanding
> how the whole transaction system fits together.  The advanced features of the tutorial cover this to some degree
> (I didn't re-read it prior to writing this up) but I'm inclined to believe people wanting to understand transactions,
> lacking a top-level chapter on the topic, will know of BEGIN and start their discovery there.

I think that it is a good idea to explain the behavior of aborted transactions.
Shouldn't that go to the hackers list though?

I don't like the term "pseudo sub-transaction".  What's pseudo about it?

> +
> +  <para>
> +    <application>psql</application> makes use of savepoints to implment its
> +    <literal>ON_ERROR_ROLLBACK</literal> behavior.
> +  </para>

s/implment/implement/

Yours,
Laurenz Albe




view thread (32+ messages)  latest in thread

Message-ID: <1517299398.2517.4.camel@cybertec.at>
Permalink:  ../1517299398.2517.4.camel@cybertec.at/
Also on:    postgresql.org/message-id/1517299398.2517.4.camel@cybertec.at

 · 

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, david.g.johnston@gmail.com, robert.zenz@sibvisions.com
  Subject: Re: Information on savepoint requirement within transctions
  In-Reply-To: <1517299398.2517.4.camel@cybertec.at>
  References: <5A6B3F78.6030908@sibvisions.com> <CANu8Fixd_cKLouG_euktWHs12Nc7Ld5VXZ-qu13yuSs7HKnVPw@mail.gmail.com> <5A6B4A12.9000002@sibvisions.com> <CANu8FixBRh=+aKFDPtWc6o4o_++tOTDQSGDOBTsQ5AnfiiCFCQ@mail.gmail.com> <CAKFQuwYY+uMxpgmWm=V=E99GL8x53cY5-oBnnqGb8ZhTmcbznw@mail.gmail.com> <5A6EDD41.70005@sibvisions.com> <CAKFQuwbTro=vw6UxkGaR6DRdaPxGBOKTsLDJFWqD9Uz-n7gVXA@mail.gmail.com> <5A6F28A7.5080800@sibvisions.com> <CAKFQuwYWCS8jwgE2favEUu+3djhMZTMf3LHBMWXy+h5k=3ccsA@mail.gmail.com> <1517299398.2517.4.camel@cybertec.at>

* 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