Question about Sql SELECT and optimizer

Поиск
Список
Период
Сортировка
От Chaz.
Тема Question about Sql SELECT and optimizer
Дата
Msg-id 44071B14.4060906@gmail.com
обсуждение исходный текст
Ответы Re: Question about Sql SELECT and optimizer  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-sql
I am trying to understand something I have seen happen. I had a select
that looked like:

select f(A) from A, B, C where g(A)

Where f(A) is the select that only depends on table A;
g(A) is the where part that only depends on table A.

What I saw happen was the optimizer will waste a lot of time (seconds!)
bringing in table B and C. I was wondering why doesn't the optimizer
drop references to tables B and C since they aren't used any where?

Peace and thanks in advance
Chuck Wegrzyn


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Without OIDs
Следующее
От: Maciej Piekielniak
Дата:
Сообщение: Re: dump with lo