Re: Optimizing view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizing view
Дата
Msg-id 17355.1047309267@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Optimizing view  ("Victor Yegorov" <viy@pirmabanka.lv>)
Список pgsql-sql
"Victor Yegorov" <viy@pirmabanka.lv> writes:
> I'm running `PostgreSQL 7.2 on i586-pc-linux-gnu, compiled by GCC 2.95.3'
> and have some problems with queries on a view.

Try 7.3.  7.2 won't push down WHERE conditions into a union.

BTW, if the archive table is disjoint from the main table, you'd be
better off using UNION ALL instead of UNION.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Help on indexing timestamps
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Cursors and backwards scans and SCROLL