Re: [HACKERS] propose to pushdown qual into EXCEPT

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: [HACKERS] propose to pushdown qual into EXCEPT
Дата
Msg-id
20161223222400.ysgmlmv7pj7wh7ph@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
[HACKERS] propose to pushdown qual into EXCEPT "Armor" <yupengstone@qq.com>
Re: [HACKERS] propose to pushdown qual into EXCEPT Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] propose to pushdown qual into EXCEPT Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] propose to pushdown qual into EXCEPT Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] propose to pushdown qual into EXCEPT Tom Lane <tgl@sss.pgh.pa.us>
Tom Lane wrote:
> "Armor"  writes:
> >     Because PG does not pushdown qual to the none of the subquery. And I check the source code, find some comments in src/backend/optimizer/path/allpaths.c, which says "If the     subquery contains EXCEPT or EXCEPT ALL set ops we cannot push quals into it, because that could change the results".
> >     However, for this case, I think we can pushdown qual to the  left most subquery of EXCEPT, just like other database does.
> 
> That is not an adequate argument for such a change being okay.  Postgres,
> with its extensible set of datatypes, has to be much more careful about
> the semantic soundness of optimizations than some other DBs do.

Can we use the record_image_ops mechanism here?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Fabien COELHO
Дата:
FAQ