Skip site navigation (1) Skip section navigation (2)

Re: Need help - optimizer trouble

From: "ADBAAMD" <adba(dot)amdocs(at)bell(dot)ca>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Helge Bahmann" <bahmann(at)math(dot)tu-freiberg(dot)de>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Need help - optimizer trouble
Date: 2001-04-05 15:10:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Tom Lane wrote:

> "ADBAAMD" <adba(dot)amdocs(at)bell(dot)ca> writes:
>> Tom Lane wrote:
>>> This behavior is a bit of a hack, which we'll likely reconsider in
>>> future releases, but it does have some redeeming social value too.
>> Perhaps it would be cleaner to have somehing like Oracle's hints?
> Possibly.  Want to enlighten those of us who've never used Oracle about
> how that works?

	You can read (almost) all about it at, more to the 

	For example:

  SELECT	/*+ STAR */
	written_by	AS wb
	author_keyword	AS kw
	kw.author_id	=  wb.author_id
	kw.keyword	=  'foo'

	There is also a /*+ ORDERED */ hint, but I dislike it as it also requires 
query rewriting.  Keep in mind I have an opinion against having to 
rewrite queries for performance reasons, thinking this should be done at 
the optimizer or preferably at the physical level or the 
logical-to-physical mapping.

	Also it does not seems to me very nice to have queries changing behaviour 
from version to version and then back again.

/ \   Leandro Guimarães Faria Corsetti Dutra         +55 (11) 3040 8913
\ /   Amdocs at Bell Canada                          +1 (514) 786 87 47
  X    Support Center, São Paulo, Brazil          mailto:adbaamd(at)bell(dot)ca
/ \    mailto:leandrod(at)amdocs(dot)com

In response to

pgsql-novice by date

Next:From: Picard, CyrilDate: 2001-04-05 15:31:09
Subject: RE: Postmaster hangs until Ctrl-C
Previous:From: Tom LaneDate: 2001-04-05 14:52:45
Subject: Re: Need help - optimizer trouble

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group