Re: Oddball data distribution giving me planner headaches - Mailing list pgsql-general

From David Johnston
Subject Re: Oddball data distribution giving me planner headaches
Date
Msg-id 038701ccb139$4c8fda90$e5af8fb0$@yahoo.com
Whole thread Raw
In response to Re: Oddball data distribution giving me planner headaches  (Jeff Amiel <becauseimjeff@yahoo.com>)
Responses Re: Oddball data distribution giving me planner headaches
List pgsql-general
-----Original Message-----
From: Jeff Amiel [mailto:becauseimjeff@yahoo.com]
Sent: Friday, December 02, 2011 4:15 PM
To: pgsql-general@postgresql.org; David Johnston
Subject: RE: [GENERAL] Oddball data distribution giving me planner headaches



--- On Fri, 12/2/11, David Johnston <polobo@yahoo.com> wrote:

> What happens if you disable, say, nested loops and/or index scans?

planner selects different join/indexing techniques (query is slower) but row
estimates (bad) remain identical.


---------------------------------------------------------
My, possibly naïve, observation:

So aside from the fact the estimates seem to be off the planner has still
chosen the most effective plan?  In that situation no matter how accurate
you get the statistics you will not gain any performance because the planner
will never choose a different plan.

IF you can find a combination of settings that forces a better performing
plan THEN steps can be taken (by others more skilled than myself) to
configure the statistics/planner system to get that better plan naturally.

David J.



pgsql-general by date:

Previous
From: Jeff Amiel
Date:
Subject: Re: Oddball data distribution giving me planner headaches
Next
From: Tom Lane
Date:
Subject: Re: \dT+ does not give elements ?