Re: Determine parallel-safety of partition relations for Inserts - Mailing list pgsql-hackers

From Greg Nancarrow
Subject Re: Determine parallel-safety of partition relations for Inserts
Date
Msg-id CAJcOf-er_wSz_WCKg=9Eo37ag_yseNKREe3Yh3q5DXpD1xCaCQ@mail.gmail.com
Whole thread Raw
In response to RE: Determine parallel-safety of partition relations for Inserts  ("Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>)
Responses Re: Determine parallel-safety of partition relations for Inserts
RE: Determine parallel-safety of partition relations for Inserts
List pgsql-hackers
On Mon, Feb 1, 2021 at 4:02 PM Hou, Zhijie <houzj.fnst@cn.fujitsu.com> wrote:
>
> Attatching v2 patch which addressed the comments above.
>
> Some further refactor:
>
> Introducing a new function is_parallel_possible_for_modify() which decide whether to do safety check.
>
> IMO, It seems more readable to extract all the check that we can do before the safety-check and put them
> in the new function.
>
> Please consider it for further review.
>

I've updated your v2 patches and altered some comments and
documentation changes (but made no code changes) - please compare
against your v2 patches, and see whether you agree with the changes to
the wording.
In the documentation, you will also notice that in your V2 patch, it
says that the "parallel_dml_enabled" table option defaults to false.
As it actually defaults to true, I changed that in the documentation
too.

Regards,
Greg Nancarrow
Fujitsu Australia

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Key management with tests
Next
From: Zhihong Yu
Date:
Subject: Re: Determine parallel-safety of partition relations for Inserts