pgsql: Optimize nested ConvertRowtypeExpr nodes.

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема pgsql: Optimize nested ConvertRowtypeExpr nodes.
Дата
Msg-id E1gK8g6-000246-R6@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Optimize nested ConvertRowtypeExpr nodes.

A ConvertRowtypeExpr is used to translate a whole-row reference of a
child to that of a parent. The planner produces nested
ConvertRowtypeExpr while translating whole-row reference of a leaf
partition in a multi-level partition hierarchy. Executor then
translates the whole-row reference from the leaf partition into all
the intermediate parent's whole-row references before arriving at the
final whole-row reference. It could instead translate the whole-row
reference from the leaf partition directly to the top-most parent's
whole-row reference skipping any intermediate translations.

Ashutosh Bapat, with tests by Kyotaro Horiguchi and some
editorialization by me. Reviewed by Andres Freund, Pavel Stehule,
Kyotaro Horiguchi, Dmitry Dolgov, Tom Lane.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5613da4cc7910f4b686b818dd1ee68703d62192f

Modified Files
--------------
src/backend/optimizer/util/clauses.c  | 46 +++++++++++++++++++++++++++++++++++
src/test/regress/expected/inherit.out | 18 ++++++++++++++
src/test/regress/sql/inherit.sql      |  5 ++++
3 files changed, 69 insertions(+)


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Use pg_pread() and pg_pwrite() for data files and WAL.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Use pg_pread() and pg_pwrite() for data files and WAL.