From: | Gregory Maxwell <gmaxwell(at)gmail(dot)com> |
---|---|
To: | "Pollard, Mike" <mpollard(at)cincom(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Stark <gsstark(at)mit(dot)edu>, "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, Neil Conway <neilc(at)samurai(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: generalizing the planner knobs |
Date: | 2005-12-02 02:01:34 |
Message-ID: | e692861c0512011801v91461aepa007a93f02c5e68e@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | Postg스포츠 토토SQL |
On 12/1/05, Pollard, Mike <mpollard(at)cincom(dot)com> wrote:
> Optimizer hints were added because some databases just don't have a very
> smart optimizer. But you are much better served tracking down cases in
> which the optimizer makes a bad choice, and teaching the optimizer how
> to make a better one. That way, all users get the benefit of the fix.
> Remember, the purpose of SQL is to isolate the end user from having to
> care about how the data is retrieved; that is the RDBMS' problem. (the
> other thing forgotten was that it was supposed to be a natural language.
> NVL. Bah.)
The flipside there is that a good set of hinting options may increase
the amount of detailed feedback we get from users on improvements
needed in the optimizer. The current knobs are pretty blunt and don't
do as much as I'd like when trying to track down exactly where the
optimiser has gone wrong.
If we'd really like to avoid people using the knobs to rig queries,
how about making them only work with explain analyze, useful for
debugging but not so useful for actual queries.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-12-02 02:37:47 | Reducing relation locking overhead |
Previous Message | Tom Lane | 2005-12-02 00:44:41 | Re: [COMMITTERS] pgsql: Add comments about why errno is set to zero. |