pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Vik Fearing <vik@postgresfriends.org>
To: Arthur Nascimento <tureba@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16867: savepoints vs. commit and chain
Date: Fri, 19 Feb 2021 22:05:25 +0900
Message-ID: <0c903ec5-8f4f-0fd5-7861-abc11b2c8457@oss.nttdata.com> (raw)
In-Reply-To: <10736536-3146-7f50-fdf6-aa5390e9c011@postgresfriends.org>
References: <16867-3475744069228158@postgresql.org>
	<CALVFHFaBUXnCxv2kfG67=3NR=WPkVGgE_5Cf9S-LDPNYAwUORQ@mail.gmail.com>
	<473dba6b-dfb3-b5a8-93c6-af3787893728@oss.nttdata.com>
	<CALVFHFanjZ_K=xVbHE31QiAHcLfQU8g1Z-UYMHoPw1q-kAnDyA@mail.gmail.com>
	<e3fbc15b-9aef-b076-d72e-20b537186342@oss.nttdata.com>
	<38fcac1f-e4b8-40ff-41ff-819b5ab8b9b7@postgresfriends.org>
	<29ba82f2-c2b6-dde2-5817-4b3558c4cadd@oss.nttdata.com>
	<10736536-3146-7f50-fdf6-aa5390e9c011@postgresfriends.org>



On 2021/02/19 17:29, Vik Fearing wrote:
> On 2/19/21 5:02 AM, Fujii Masao wrote:
>>
>>
>> On 2021/02/18 23:10, Vik Fearing wrote:
>>>
>>> No objection from me.  According to the standard, a COMMIT should
>>> destroy all savepoints and terminate the transaction, even if AND CHAIN
>>> is specified.
>>
>> You imply that the standard says that COMMIT AND CHAIN should just
>> terminate
>> the transaction if there are savepoints defined, i.e., should not start new
>> transaction? Since I can (maybe wrongly) interpret your comment like that,
>> please let me confirm what the standard says just in case.
> 
> The COMMIT terminates the transaction, the AND CHAIN starts a new one.
> 
>> I was thinking that COMMIT AND CHAIN should destroy all the savepoints,
>> terminate the transaction and start new transaction with the same
>> transaction
>> characteristics immediately.
> 
> Your thinking is correct!

Thanks! I pushed the patches.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION





view thread (9+ messages)

Message-ID: <0c903ec5-8f4f-0fd5-7861-abc11b2c8457@oss.nttdata.com>
Permalink:  ../0c903ec5-8f4f-0fd5-7861-abc11b2c8457@oss.nttdata.com/
Also on:    postgresql.org/message-id/0c903ec5-8f4f-0fd5-7861-abc11b2c8457@oss.nttdata.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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, vik@postgresfriends.org, tureba@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16867: savepoints vs. commit and chain
  In-Reply-To: <0c903ec5-8f4f-0fd5-7861-abc11b2c8457@oss.nttdata.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