Re: [PORTS] Port Bug Report: Suggestion: Allow users to specify optimizer hints or strategies.

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [PORTS] Port Bug Report: Suggestion: Allow users to specify optimizer hints or strategies.
Дата
Msg-id 199904131440.KAA13884@candle.pha.pa.us
обсуждение исходный текст
Список pgsql-ports
> Given the various complexities of the optimizer, would there be
> any way of allowing developers to specify strategy, or give
> hints. This is allowed in Dec (now Oracle) RDB, and in some
> fashion in both SQL/Server and Sybase.
>
> The sorts of things that might be desirable are: which index to
> join on and the order of joining the tables.
>
> Digital Equipment Corp used to maintain that the optimizer should
> know best, and that developers make more mistakes, and that is
> true. But an experienced DBA, along with details of common
> transactions, can almost always do better than an optimizer.

Usually hand-tuning joins is a symtom of a bad optimizer.  Rdb never had
a world-class optimizer, as far as I remember.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PORTS] Port Bug Report: Tables, indexes...really owned by postgres are ghosted by other user
Следующее
От: Unprivileged user
Дата:
Сообщение: Port Bug Report: syntax errors in spinlocks (s_lock.h)