Re: Fix the miss consideration of tuple_fraction during add_paths_to_append_rel

From: Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>
To: Zhang Mingli <zmlpostgres(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix the miss consideration of tuple_fraction during add_paths_to_append_rel
Date: 2023-04-11 17:45:10
Message-ID: CAKU4AWrwRbtO4+a+WhLG-2TG3hk-oFNTdt5p=1GYp+4jk+-PeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Apr 10, 2023 at 9:56 PM Zhang Mingli <zmlpostgres(at)gmail(dot)com> wrote:

>
> There is spare indent at else if.
>
> - if (childrel->pathlist != NIL &&
> + if (cheapest_startup_path && cheapest_startup_path->param_info == NULL)
> + accumulate_append_subpath(cheapest_startup_path,
> + &subpaths, NULL);
> + else if (childrel->pathlist != NIL &&
> childrel->cheapest_total_path->param_info == NULL)
> accumulate_append_subpath(childrel->cheapest_total_path,
> &subpaths, NULL);
>
> Could we also consider tuple_fraction in partial_pathlist for parallel
> append?
>
>
Thanks for the suggestion, the v2 has fixed the indent issue and I did
something about parallel append. Besides that, I restrict the changes
happens under bms_equal(rel->relids, root->all_query_rels), which may
make this patch safer.

I have added this into https://commitfest.postgresql.org/43/4270/

--
Best Regards
Andy Fan

Attachment Content-Type Size
v2-0001-Considering-root-tuple_fraction-during-create_app.patch application/octet-stream 8.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2023-04-11 17:53:35 Re: Direct I/O
Previous Message Alvaro Herrera 2023-04-11 17:44:20 Re: When to drop src/tools/msvc support