Re: [BUGS] BUG #14469: Wrong cost estimates for merge append plan with partitions. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14469: Wrong cost estimates for merge append plan with partitions.
Date
Msg-id 26142.1481996902@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #14469: Wrong cost estimates for merge append planwith partitions.  (Alexey Ermakov <alexey.ermakov@postgresql-consulting.com>)
List pgsql-bugs
Alexey Ermakov <alexey.ermakov@postgresql-consulting.com> writes:
> I think we should change that estimation and in case when child node 
> expected to return only one row (and really 0 rows) we should use it's 
> total_cost as base for estimation of startup_cost.

This would make sense as part of the overall rethinking of startup_cost
discussed in
https://www.postgresql.org/message-id/flat/31065.1481742760%40sss.pgh.pa.us
but I'm disinclined to do it in isolation.  Redefining startup_cost for
just one path type seems likely to create more problems than it solves.

            regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [BUGS] BUG #14460: ecpg dynamic describe data types incorrect
Next
From: Tom Lane
Date:
Subject: [BUGS] Mishandling of right-associated phrase operators in FTS