Re: ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4? - Mailing list pgsql-general

From Tom Lane
Subject Re: ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?
Date
Msg-id 10231.1200852817@sss.pgh.pa.us
Whole thread Raw
In response to Re: ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> A random thought: Is there not some way of representing this difference
> in the planner?

It's not so much that we have no way to represent the ordering, as that
the planner currently doesn't have any place in its conceptual model for
costs incurred outside the "plan tree".  In this example we consider
only the costs of the SELECT part, not costs of inserting the resulting
rows someplace.  Up to now we've always assumed that such costs could be
ignored because they'd be about the same for every valid plan for a
given query.  This is the first example I can remember seeing in which
(a) that is not true, and (b) the effect might conceivably be within the
planner's ability to estimate costs for.

            regards, tom lane

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Sun acquires MySQL
Next
From: Tom Lane
Date:
Subject: Re: ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?