From: | "bucoo(at)sohu(dot)com" <bucoo(at)sohu(dot)com> |
---|---|
To: | "Richard Guo" <guofenglinux(at)gmail(dot)com>, robertmhaas <robertmhaas(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: fix cost subqueryscan wrong parallel cost |
Date: | 2022-04-15 10:06:25 |
Message-ID: | 2022041518062455295013@sohu.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Generally it should be. But there's no subquery scan visible here.
I wrote a patch for distinct/union and aggregate support last year(I want restart it again).
https://www.postgresql.org/message-id/2021091517250848215321%40sohu.com
If not apply this patch, some parallel paths will naver be selected.
> Some debugging work shows that the second path is generated but then
> fails when competing with the first path. So if there is something
> wrong, I think cost calculation is the suspicious point.
Maybe, I will check it again.
> Not related to this topic but I noticed another problem from the plan.
> Note the first Sort node which is to unique-ify the result of the UNION.
> Why cannot we re-arrange the sort keys from (a, b, c) to (a, c, b) so
> that we can avoid the second Sort node?
This is a regress test, just for test Incremental Sort plan.
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2022-04-15 10:10:59 | Re: fix cost subqueryscan wrong parallel cost |
Previous Message | Richard Guo | 2022-04-15 09:16:44 | Re: fix cost subqueryscan wrong parallel cost |