pgsql: Don't constrain self-join removal due to PHVs

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Don't constrain self-join removal due to PHVs
Дата
Msg-id E1rHXym-00Bl71-8z@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don't constrain self-join removal due to PHVs

Self-join removal appears to be safe to apply with placeholder variables
as long as we handle PlaceHolderVar in replace_varno_walker() and replace
relid in phinfo->ph_lateral.

Discussion: https://postgr.es/m/18187-831da249cbd2ff8e%40postgresql.org
Author: Richard Guo
Reviewed-by: Andrei Lepikhov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b5fb6736ed3b6875e2a4ca39d33325147f535137

Modified Files
--------------
src/backend/optimizer/plan/analyzejoins.c | 18 ++++----------
src/test/regress/expected/join.out        | 39 ++++++++++++++++++++++---------
src/test/regress/sql/join.sql             | 10 +++++---
3 files changed, 39 insertions(+), 28 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Enhance checkpointer restartpoint statistics
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix erroneous -Werror=missing-braces on old GCC.