Re: bug in query planning?

Поиск
Список
Период
Сортировка
От Steven D.Arnold
Тема Re: bug in query planning?
Дата
Msg-id 547BEBA6-34A5-11D8-96F2-000A95BA4396@neosynapse.net
обсуждение исходный текст
Ответ на Re: bug in query planning?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bug in query planning?  (DeJuan Jackson <djackson@speedfc.com>)
Список pgsql-general
On Dec 21, 2003, at 11:47 PM, Tom Lane wrote:

> "Steven D.Arnold" <stevena@neosynapse.net> writes:
>> Query (2) below is the same query, but we reverse the order of the
>> tables.  It's obviously not quite the same query semantically, even
>> though in my case it should always produce the same result.
>
> Since it is in fact not the same query, I'm unclear on why you expect
> it to produce the same plan.

What I expect is for both queries to use the index on the messages
table!  Why is it not doing that?

> FWIW, I believe that 7.4 will recognize that (1) and (3) are
> semantically equivalent.

I will try 7.4 and report back.

steve


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Triggers for FK on Views - can they be made deferrable?
Следующее
От: Dima Tkach
Дата:
Сообщение: postmaster and logrotate