postgresql bug?

Поиск
Список
Период
Сортировка
От uwcssa
Тема postgresql bug?
Дата
Msg-id f2f562510602042106y7d82b3f8h28c9b75b362e3d05@mail.gmail.com
обсуждение исходный текст
Ответы Re: postgresql bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
i am using version 8.0.3<br /><br /> if you run the following query:<br /><br /> select count(*) from T1 where 
(T1.a>10and T1.a<20) or (T1.a>90 and T1.a<100)<br /><br /> the set_baserel_size_estimate will accurately
estimatethe selectivity on T1.<br /><br /> However, if you run<br /><br /> select count(*) from T1, T2 where T1.b=T2.c
and (T1.a>10 and T1.a<20) or (T1.a>90 and T1.a<100)<br /><br /> 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().<br
/><br/> is this a bug?<br />  <br /> 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: look up tables while parsing queries
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postgresql bug?