Hints (Was: Index Tuning Features)

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Hints (Was: Index Tuning Features)
Дата
Msg-id 20061012112647.GD28443@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Re: Index Tuning Features  (Florian Weimer <fweimer@bfk.de>)
Ответы Re: Hints (Was: Index Tuning Features)
Список pgsql-hackers
On Thu, Oct 12, 2006 at 08:34:45AM +0200, Florian Weimer wrote:
> 
> Some statistics are very hard to gather from a sample, e.g. the number
> of distinct values in a column.

Then how can the DBA know it, either?  The problem with this sort of
argument is always that people are claiming some special knowledge is
available to the DBA.  If it's true that the DBA really _can_ know
this stuff, then there must be some way to learn it.  Which means
that you can, in principle, figure out ways to communicate that to
the optimizer.

I like the suggestion, though, that there be ways to codify known
relationships in the system in such a way that the optimizer can
learn to use that information.  _That_ seems to me to be a big
improvement, because it can be taken into consideration along with
relationships that emerge from the statistics, that the DBA may not
know about.


A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
In the future this spectacle of the middle classes shocking the avant-
garde will probably become the textbook definition of Postmodernism.                --Brad Holland


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Hints (was: Index Tuning Features)
Следующее
От: Teodor Sigaev
Дата:
Сообщение: create temp table .. on commit delete rows