Assumptions about the number of parallel workers - Mailing list pgsql-hackers

From Antonin Houska
Subject Assumptions about the number of parallel workers
Date
Msg-id 36697.1580896205@antos
Whole thread Raw
Responses Re: Assumptions about the number of parallel workers
Re: Assumptions about the number of parallel workers
List pgsql-hackers
I can't figure out why ExecGather/ExecGatherMerge do check whether num_workers
is non-zero. I think the code would be a bit clearer if these tests were
replaced with Assert() statements, as the attached patch does.

In addition, if my assumptions are correct, I think that only Gather node
needs the single_copy field, but GatherPath does not.

In the patch I also added Assert() to add_partial_path so that I'm more likely
to catch special cases. Regression tests passed though.

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com


Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: pg_stat_progress_basebackup - progress reporting forpg_basebackup, in the server side
Next
From: "曾文旌(义从)"
Date:
Subject: Re: [Proposal] Global temporary tables