Re: Planner picking topsey turvey plan?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: glynastill(at)yahoo(dot)co(dot)uk
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Planner picking topsey turvey plan?
Date: 2008-12-08 02:02:11
Message-ID: 5092.1228701731@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Glyn Astill <glynastill(at)yahoo(dot)co(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message AmitKumar Jain 2008-12-08 02:39:42 pg_service.con
Previous Message Scott Marlowe 2008-12-07 20:51:58 Re: upgrade via rpm

Browse pgsql-general by date

  From Date Subject
Next Message Dot Yet 2008-12-08 05:02:27 Re: Unique constaint violated without being violated
Previous Message Tom Lane 2008-12-08 00:22:40 Re: COPY error with null date