Re: View prevents index

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: View prevents index
Дата
Msg-id 20010712133907B.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: View prevents index  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: View prevents index  ("Eric G. Miller" <egm2@jps.net>)
Re: View prevents index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.

Could you tell me in what cases two of above are not equivalent? Or
any specification in the standard that refers to this kind of
transformation for views?
--
Tatsuo Ishii

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

Предыдущее
От: Philip Molter
Дата:
Сообщение: Re: vacuum and 24/7 uptime
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Performance tuning for linux, 1GB RAM, dual CPU?