Re: Planner picking topsey turvey plan? - Mailing list pgsql-general

From Tom Lane
Subject Re: Planner picking topsey turvey plan?
Date
Msg-id 5092.1228701731@sss.pgh.pa.us
Whole thread Raw
In response to Planner picking topsey turvey plan?  (Glyn Astill <glynastill@yahoo.co.uk>)
Responses Re: Planner picking topsey turvey plan?  (Glyn Astill <glynastill@yahoo.co.uk>)
List pgsql-general
Glyn Astill <glynastill@yahoo.co.uk> writes:
> Does anyone know how I can change what I'm doing to get pgsql to pick a better plan?

You've provided no evidence that this is a bad plan.

In particular, the plan you seem to think would be better would involve
an estimated 153 iterations of the cost-15071 hash aggregation, which
simple arithmetic shows is more expensive than the plan it did choose.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: COPY error with null date
Next
From: "Dot Yet"
Date:
Subject: Re: Unique constaint violated without being violated