pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: chained transactions
Date: Sun, 24 Mar 2019 12:04:12 +0100
Message-ID: <1133e035-72d0-b9ef-dee1-6b2efd65ec38@2ndquadrant.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1903181919410.27990@lancre>
References: <28536681-324b-10dc-ade8-ab46f7645a5a@2ndquadrant.com>
	<b989871c-b2d9-42b9-4461-ace590d1a7c0@iki.fi>
	<20181002053854.GA11712@paquier.xyz>
	<ae851ab9-1e53-2200-cbdd-5823160a0367@2ndquadrant.com>
	<alpine.DEB.2.21.1811041203540.7070@lancre>
	<adb990de-c96d-c685-ddc1-5489aaf49316@2ndquadrant.com>
	<alpine.DEB.2.21.1812260824270.32444@lancre>
	<a08a4da5-1e13-c4d1-6e80-86155f946928@2ndquadrant.com>
	<alpine.DEB.2.21.1901061417050.30093@lancre>
	<05b14a9b-c2bb-aadb-e5f7-c53c2913c1cc@2ndquadrant.com>
	<alpine.DEB.2.21.1903181919410.27990@lancre>

Patch has been committed, thanks.

On 2019-03-18 21:20, Fabien COELHO wrote:
> Minor remarks:
> 
> In "xact.c", maybe I'd assign blockState in the else branch, instead of 
> overriding it?

I think it was better the way it is, since logically the block state is
first set, then set again after the new transaction starts.

> About the static _SPI_{commit,rollback} functions: I'm fine with these 
> functions, but I'm not sure about their name. Maybe 
> _SPI_chainable_{commit,rollback} would be is clearer about their content?

I kept it as is, to mirror the names of the SQL commands.

> Doc looks clear to me. ISTM "chain" should be added as an index term?

Added, good idea.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (28+ messages)  latest in thread

Message-ID: <1133e035-72d0-b9ef-dee1-6b2efd65ec38@2ndquadrant.com>
Permalink:  ../1133e035-72d0-b9ef-dee1-6b2efd65ec38@2ndquadrant.com/
Also on:    postgresql.org/message-id/1133e035-72d0-b9ef-dee1-6b2efd65ec38@2ndquadrant.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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, coelho@cri.ensmp.fr
  Subject: Re: chained transactions
  In-Reply-To: <1133e035-72d0-b9ef-dee1-6b2efd65ec38@2ndquadrant.com>
  References: <28536681-324b-10dc-ade8-ab46f7645a5a@2ndquadrant.com> <b989871c-b2d9-42b9-4461-ace590d1a7c0@iki.fi> <20181002053854.GA11712@paquier.xyz> <ae851ab9-1e53-2200-cbdd-5823160a0367@2ndquadrant.com> <alpine.DEB.2.21.1811041203540.7070@lancre> <adb990de-c96d-c685-ddc1-5489aaf49316@2ndquadrant.com> <alpine.DEB.2.21.1812260824270.32444@lancre> <a08a4da5-1e13-c4d1-6e80-86155f946928@2ndquadrant.com> <alpine.DEB.2.21.1901061417050.30093@lancre> <05b14a9b-c2bb-aadb-e5f7-c53c2913c1cc@2ndquadrant.com> <alpine.DEB.2.21.1903181919410.27990@lancre> <1133e035-72d0-b9ef-dee1-6b2efd65ec38@2ndquadrant.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