Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints
Дата
Msg-id 407d949e0910161838x3229b2edq57f144a34fcfc16@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints  (decibel <decibel@decibel.org>)
Список pgsql-hackers
On Fri, Oct 16, 2009 at 10:04 AM, decibel <decibel@decibel.org> wrote:
> Out of curiosity, did you look at doing hints as comments in a query? I'm
> guessing you couldn't actually do that in just a contrib module, but it's
> how Oracle handles hints, and it seems to be *much* more convenient, because
> a hint only applies for a specific query

Fwiw Oracle is moving away from this now. At OpenWorld the optimizer
folks were pleading with folks to get rid of all their hard-coded
hints by preparing plans for hinted queries and loading those as the
approved plans. In 11g there's a system which ensures the database
will not run any plan that isn't approved.

In fact it looks an *awful* lot like the system I sketched out 6 years
ago in: http://article.gmane.org/gmane.comp.db.postgresql.devel.general/11385

--
greg

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Deprecation
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Re: Reworks for Access Control facilities (r2363)