Re: make add_paths_to_append_rel aware of startup cost

From: Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Zhang Mingli <zmlpostgres(at)gmail(dot)com>
Subject: Re: make add_paths_to_append_rel aware of startup cost
Date: 2023-09-18 10:55:46
Message-ID: CAKU4AWqaTNPrYcb_cMEDDYWZVGfFxuUjr75F5LBZwnUQ0JvVPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> What do you think about this in my last reply? "If my above
> analysis is correct, I think the best way to handle this is if there
> is no more tables to join, we use cheapest fraction cost for all
> the kinds of relations, including plain relation, append rel,
> subquery and so on, If we have more tables to join, we use
> cheapest startup cost.". This is what is in my mind now.
>
>
Here is an updated version to show what's in my mind.

--
Best Regards
Andy Fan

Attachment Content-Type Size
v3-0001-make-add_paths_to_append_rel-aware-of-startup_cos.patch application/octet-stream 23.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2023-09-18 11:09:43 Fix GIST readme on LSN vs NSN
Previous Message Heikki Linnakangas 2023-09-18 10:49:24 Re: Sync scan & regression tests