From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | "Jonah H(dot) Harris" <jharris(at)enterprisedb(dot)com> |
Cc: | josh(at)agliodbs(dot)com, pgsql-performance(at)postgresql(dot)org, Denis Lussier <denisl(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "korryd(at)enterprisedb(dot)com" <korryd(at)enterprisedb(dot)com>, "Craig A(dot) James" <cjames(at)modgraph-usa(dot)com> |
Subject: | Re: Simple join optimized badly? |
Date: | 2006-10-09 02:12:12 |
Message-ID: | 200610090212.k992CCP10515@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Jonah H. Harris wrote:
> On Oct 08, 2006 07:05 PM, Josh Berkus <josh(at)agliodbs(dot)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(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Kirkwood | 2006-10-09 02:41:20 | Re: Simple join optimized badly? |
Previous Message | Craig A. James | 2006-10-09 01:07:22 | Re: Simple join optimized badly? |