pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-performance@postgresql.org
Subject: Re: hints in Postgres?
Date: Thu, 11 Dec 2003 11:31:45 -0500
Message-ID: <m3d6avxqmm.fsf@wolfe.cbbrowne.com> (raw)
References: <BAY7-F88NSB5KizJl8200026b71@hotmail.com>

Quoth mileruiz@hotmail.com ("sandra ruiz"):
> I need to know if there is anything like hints of Oracle in
> Postgres..otherwise..I wish to find a way to force a query plan to use
> the indexes or tell the optimizer things like "optimize based in
> statistics", "I want to define the order of the a join" , "optimize
> based on a execution plan that I consider the best" ...

It is commonly considered a MISFEATURE of Oracle that it forces you to
tweak all of those sorts of 'knobs.'

The approach taken with PostgreSQL is to use problems discovered to
try to improve the quality of the query optimizer.  It is usually
clever enough to do a good job, and if it can be improved to
automatically notice that "better" plan, then that is a better thing
than imposing the burden of tuning each query on you.

Tom Lane is "Doctor Optimization," and if you look at past discussion
threads of this sort, you'll see that he tends to rather strongly
oppose the introduction of "hints."
-- 
select 'aa454' || '@' || 'freenet.carleton.ca';
http://www3.sympatico.ca/cbbrowne/linux.html
As of next Monday, COMSAT will be flushed in favor of a string and two tin
cans.  Please update your software.



view thread (4+ messages)  latest in thread

Message-ID: <m3d6avxqmm.fsf@wolfe.cbbrowne.com>
Permalink:  ../m3d6avxqmm.fsf@wolfe.cbbrowne.com/
Also on:    postgresql.org/message-id/m3d6avxqmm.fsf@wolfe.cbbrowne.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: hints in Postgres?
  In-Reply-To: <m3d6avxqmm.fsf@wolfe.cbbrowne.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox