Re: Simple join optimized badly? - Mailing list pgsql-performance

From Bruce Momjian
Subject Re: Simple join optimized badly?
Date
Msg-id 200610090212.k992CCP10515@momjian.us
Whole thread Raw
In response to Simple join optimized badly?  ("Craig A. James" <cjames@modgraph-usa.com>)
Responses Re: Simple join optimized badly?  ("Craig A. James" <cjames@modgraph-usa.com>)
List pgsql-performance
Jonah H. Harris wrote:
> On Oct 08, 2006 07:05 PM, Josh Berkus <josh@agliodbs.com> wrote:
> > Hints are used because the DBA thinks that they are smarter than
> > the optimizer; 99% of the time, they are wrong.
>
> That's a figure which I'm 100% sure cannot be backed up by fact.
>
> > Just try manually optimizing a complex query, you'll see -- with three
> > join types, several scan types, aggregates, bitmaps, [blah blah blah]
> > it's significantly more than a human can figure out accurately.
>
> Let me get this right... the optimizer is written by humans who know and
> can calculate the proper query plan and generate code to do the same;
> yet humans aren't smart enough to optimize the queries themselves? A bit
> of circular reasoning here?

I can do 100! on my computer, but can't do it in my head.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Simple join optimized badly?
Next
From: Mark Kirkwood
Date:
Subject: Re: Simple join optimized badly?