Re: Views with unions

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Views with unions
Дата
Msg-id 20030216095555.K94589-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: Views with unions  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Views with unions
Список pgsql-performance
On Sat, 15 Feb 2003, Josh Berkus wrote:

> Mariusz,
>
> > While testing multi-select views I found some problems. Here are details. I
> > have 3 tables and I created a view on them:
>
> What version of PostgreSQL are you using?   UNION views optimized extremely
> poorly through 7.2.4; things have been improved in 7.3

Yeah, but I think what he's hoping is that it'll notice that
"key=1 and key=3" would be noticed as a false condition so that it doesn't
scan those tables since a row presumably can't satisify both. The question
would be, is the expense of checking the condition for all queries
greater than the potential gain for these sorts of queries.  In addition,
you'd have to be careful to make it work correctly with operator
overloading, since someone could make operators whose semantics in
cross-datatype comparisons are wierd.


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

Предыдущее
От: Mariusz Czułada
Дата:
Сообщение: Re: Views with unions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Views with unions