Re: View prevents index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: View prevents index
Дата
Msg-id 17448.994828204@sss.pgh.pa.us
обсуждение исходный текст
Ответ на View prevents index  (Christopher Masto <chris+pg-general@netmonger.net>)
Ответы Re: View prevents index
Список pgsql-general
Christopher Masto <chris+pg-general@netmonger.net> writes:
> I guess maybe I'm expecting too much magic optimization.

You're expecting the system to transform

    (SELECT foo UNION SELECT bar) WHERE condition

into

    (SELECT foo WHERE condition) UNION (SELECT bar WHERE condition)

It's not immediately obvious to me that these are equivalent, or
perhaps I should say it's not clear under what conditions is the
transformation legitimate.

            regards, tom lane

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

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: Re: Encrypting database?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: [PATCH] Partial indices almost there