Re: Confirmation of bad query plan generated by 7.4

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Confirmation of bad query plan generated by 7.4
Дата
Msg-id 20060614135740.GZ34196@pervasive.com
обсуждение исходный текст
Ответ на Re: Confirmation of bad query plan generated by 7.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On Tue, Jun 13, 2006 at 09:50:49PM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jnasby@pervasive.com> writes:
> > On Tue, Jun 13, 2006 at 06:04:42PM -0400, Tom Lane wrote:
> >> It'd depend on the context, possibly, but it's easy to show that the
> >> current planner does fold "now() - interval_constant" when making
> >> estimates.  Simple example:
>
> > Turns out the difference is between feeding a date vs a timestamp into the
> > query... I would have thought that since date is a date that the WHERE clause
> > would be casted to a date if it was a timestamptz, but I guess not...
>
> Hmm ... worksforme.  Could you provide a complete test case?

I can't provide the data I used for that, but I'll try and come up with
something else.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: Sven Geisler
Дата:
Сообщение: Re: how to partition disks
Следующее
От: "Dave Dutcher"
Дата:
Сообщение: Re: OT - select + must have from - sql standard syntax?