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

Re: Optimizer Bug?

From: "Mitterwald, Holger" <mittehlg(at)coi(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Optimizer Bug?
Date: 2000-05-30 12:07:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Peter Eisentraut wrote:
> Sure it's used. Just because it's not mentioned in the select list doesn't
> mean it will be ignored completely. What you get here is a three-way join,
> which is of course slower than a two way join.

What I do not understand at all: The table "preis" is neither used in
the select
nor in the where part of the statement. The result will not change if
the table will
not be here nor will it change if there are other datasets in it. Why
should a DBMS
do a full table scan, do a third join on a table that is not used at

P.S.: I tested it on OpenIngres 2.0, and the effects are the same. Funny

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2000-05-30 15:18:55
Subject: Re: Optimizer Bug?
Previous:From: Peter EisentrautDate: 2000-05-30 11:53:26
Subject: Re: Optimizer Bug?

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