Re: Rules and Views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rules and Views
Дата
Msg-id 13424.1028228380@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Rules and Views  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: Rules and Views
Список pgsql-hackers
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> So if T1 has a #dups>0 and T2 has a #dups>0 we should get
> no rows, but what if T1' (with the clause) has a #dups>0 but
> T2' has a #dups=0?

Um, you're right --- pushing down into the right-hand side would reduce
N, thereby possibly *increasing* the number of output rows not reducing
it.  My mistake ... should have worked out the EXCEPT case in more
detail.

This says that we can't push down at all in the EXCEPT ALL case, I
think, and I'm leery about whether we should push for EXCEPT.  But
the UNION and INTERSECT cases are probably the important ones anyway.
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Open 7.3 items
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Trim the Fat (Was: Re: Open 7.3 items )