Re: Refactoring postgres_fdw code to rollback remote transaction - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: Refactoring postgres_fdw code to rollback remote transaction
Date
Msg-id CALj2ACUJALFeJ6+BcKeFnHAY9SG+WBM+q7jT1_4JCp_2kW3b3Q@mail.gmail.com
Whole thread Raw
In response to Re: Refactoring postgres_fdw code to rollback remote transaction  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: Refactoring postgres_fdw code to rollback remote transaction
List pgsql-hackers
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
directlyreturn.
 
>
> 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.

Regards,
Bharath Rupireddy.



pgsql-hackers by date:

Previous
From: "houzj.fnst@fujitsu.com"
Date:
Subject: RE: Logical replication keepalive flood
Next
From: Peter Smith
Date:
Subject: Re: Logical replication keepalive flood