[BUGS] Optimizer Bug?

2000-05-30 Thread Mitterwald, Holger
Hello, I do have a quite suspicious behavior of the Qery-Optimizer (I think): If I execute the following statement: query: explain select k.name, t.lang from kneipe k, typ t where k.typ=t.typ; ProcessUtility: explain select k.name, t.lang from kneipe k, typ t where k.typ=t.typ; NOTICE: QUERY PLA

Re: [BUGS] Optimizer Bug?

2000-05-30 Thread Mitterwald, Holger
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

Re: [BUGS] Optimizer Bug?

2000-05-30 Thread Tom Lane
"Mitterwald, Holger" <[EMAIL PROTECTED]> writes: > Seems ok to me, but if I insert a (huge) table which is nowhere > referenced (here:"preis"), the > following happens: > query: explain select k.name, t.lang from kneipe k, typ t, preis p where > k.typ=t.typ; > NOTICE: QUERY PLAN: > Merge Join

Re: [BUGS] Optimizer Bug?

2000-05-30 Thread Peter Eisentraut
On Tue, 30 May 2000, Mitterwald, Holger wrote: > If I execute the following statement: > query: explain select k.name, t.lang from kneipe k, typ t where > k.typ=t.typ; > ProcessUtility: explain select k.name, t.lang from kneipe k, typ t where > k.typ=t.typ; > Seems ok to me, but if I insert a (h