Re: [PORTS] Port Bug Report: Suggestion: Allow users to specify optimizer hints or strategies. - Mailing list pgsql-ports

From Bruce Momjian
Subject Re: [PORTS] Port Bug Report: Suggestion: Allow users to specify optimizer hints or strategies.
Date
Msg-id 199904131440.KAA13884@candle.pha.pa.us
Whole thread Raw
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PORTS] Port Bug Report: Tables, indexes...really owned by postgres are ghosted by other user
Next
From: Unprivileged user
Date:
Subject: Port Bug Report: syntax errors in spinlocks (s_lock.h)