Re: postgres_fdw: commit remote (sub)transactions in parallel during pre-commit

From: Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>
To: David Zhang <david(dot)zhang(at)highgo(dot)ca>
Cc: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: postgres_fdw: commit remote (sub)transactions in parallel during pre-commit
Date: 2022-05-11 10:39:07
Message-ID: CAPmGK143p8iMbnZjwRcD5m9efwe5UHQT9rWEZPaGkoP5o4FjOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, May 6, 2022 at 7:08 PM Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com> wrote:
> > > On Wed, Apr 20, 2022 at 4:55 AM David Zhang <david(dot)zhang(at)highgo(dot)ca> wrote:
> > >> + * remote server in parallel at (sub)transaction end.

> I noticed that the comment failed to mention that the
> parallel_commit option is disabled by default. Also, I noticed a
> comment above it:
>
> * It's enough to determine this only when making new connection because
> * all the connections to the foreign server whose keep_connections option
> * is changed will be closed and re-made later.
>
> This would apply to the parallel_commit option as well. How about
> updating these like the attached? (I simplified the latter comment
> and moved it to a more appropriate place.)

I’m planning to commit this as a follow-up patch for commit 04e706d42.

Best regards,
Etsuro Fujita

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2022-05-11 11:33:54 Re: Logical replication timeout problem
Previous Message Etsuro Fujita 2022-05-11 10:29:28 Re: postgres_fdw "parallel_commit" docs