pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Refactoring postgres_fdw code to rollback remote transaction
Date: Wed, 22 Sep 2021 00:16:03 +0900
Message-ID: <cbcab143-ea07-1c3d-f4cb-6f4f878acc0b@oss.nttdata.com> (raw)
In-Reply-To: <CALj2ACUJALFeJ6+BcKeFnHAY9SG+WBM+q7jT1_4JCp_2kW3b3Q@mail.gmail.com>
References: <62fbb63a-d46c-fb47-a56d-f6be1909aa44@oss.nttdata.com>
	<CALNJ-vSBpE6q6u+6rb78HWjKEF58-bt4_s+r8dLn=1wjUZ-wQw@mail.gmail.com>
	<2a767435-9a92-a6fb-4b59-a81434dda1ab@oss.nttdata.com>
	<CALj2ACUJALFeJ6+BcKeFnHAY9SG+WBM+q7jT1_4JCp_2kW3b3Q@mail.gmail.com>



On 2021/09/17 15:33, Bharath Rupireddy wrote:
> On Fri, Sep 17, 2021 at 8:28 AM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
>>
>> On 2021/09/17 11:40, Zhihong Yu wrote:
>>> +           goto fail;          /* Trouble clearing prepared statements */
>>>
>>> The label fail can be removed. Under the above condition,  entry->changing_xact_state is still true. You can directly return.
>>
>> Thanks for the review! Yes, you're right. Attached the updated version of the patch.
> 
> +1 for the code refactoring (1 file changed, 75 insertions(+), 102
> deletions(-)).
> 
> The v2 patch looks good to me as is.

Thanks for the review! Barring any objection, I will commit the patch.

Regards,

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





view thread (6+ messages)  latest in thread

Message-ID: <cbcab143-ea07-1c3d-f4cb-6f4f878acc0b@oss.nttdata.com>
Permalink:  ../cbcab143-ea07-1c3d-f4cb-6f4f878acc0b@oss.nttdata.com/
Also on:    postgresql.org/message-id/cbcab143-ea07-1c3d-f4cb-6f4f878acc0b@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 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: masao.fujii@oss.nttdata.com, bharath.rupireddyforpostgres@gmail.com, zyu@yugabyte.com
  Subject: Re: Refactoring postgres_fdw code to rollback remote transaction
  In-Reply-To: <cbcab143-ea07-1c3d-f4cb-6f4f878acc0b@oss.nttdata.com>
  References: <62fbb63a-d46c-fb47-a56d-f6be1909aa44@oss.nttdata.com> <CALNJ-vSBpE6q6u+6rb78HWjKEF58-bt4_s+r8dLn=1wjUZ-wQw@mail.gmail.com> <2a767435-9a92-a6fb-4b59-a81434dda1ab@oss.nttdata.com> <CALj2ACUJALFeJ6+BcKeFnHAY9SG+WBM+q7jT1_4JCp_2kW3b3Q@mail.gmail.com> <cbcab143-ea07-1c3d-f4cb-6f4f878acc0b@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