Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints - Mailing list pgsql-hackers

From Greg Stark
Subject Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints
Date
Msg-id 407d949e0910161838x3229b2edq57f144a34fcfc16@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints  (decibel <decibel@decibel.org>)
List 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 by date:

Previous
From: Greg Stark
Date:
Subject: Re: Deprecation
Next
From: KaiGai Kohei
Date:
Subject: Re: Reworks for Access Control facilities (r2363)