Re: postgresql bug? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: postgresql bug?
Date
Msg-id 8000.1139116756@sss.pgh.pa.us
Whole thread Raw
In response to postgresql bug?  (uwcssa <uwcssa@gmail.com>)
List pgsql-hackers
uwcssa <uwcssa@gmail.com> writes:
> select count(*) from T1, T2 where T1.b=3DT2.c and  (T1.a>10 and T1.a<20) or=
>  (
> T1.a>90 and T1.a<100)

> the selectivity estimate on T1 is always 1.0     the reason is the
> re-l->baserestrictinfo is NULL for the second query in
> set_baserel_size_estimates().

Sure you're not looking at T2?
        regards, tom lane


pgsql-hackers by date:

Previous
From: uwcssa
Date:
Subject: postgresql bug?
Next
From: "Magnus Hagander"
Date:
Subject: Re: [ADMIN] Postgres 8.1.x and MIT Kerberos 5