Обсуждение: [COMMITTERS] pgsql: Make RelationGetPartitionDispatchInfo expand depth-first.

Поиск
Список
Период
Сортировка

[COMMITTERS] pgsql: Make RelationGetPartitionDispatchInfo expand depth-first.

От
Robert Haas
Дата:
Make RelationGetPartitionDispatchInfo expand depth-first.

With this change, the order of leaf partitions as returned by
RelationGetPartitionDispatchInfo should now be the same as the
order used by expand_inherited_rtentry.  This will make it simpler
for future patches to match up the partition dispatch information
with the planner data structures.  The new code is also, in my
opinion anyway, simpler and easier to understand.

Amit Langote, reviewed by Amit Khandekar.  I also reviewed and
made a few cosmetic revisions.

Discussion: http://postgr.es/m/d98d4761-5071-1762-501e-0e15047c714b@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/77b6b5e9ceca04dbd6f0f6cd3fc881519acc8714

Modified Files
--------------
src/backend/catalog/partition.c        | 252 ++++++++++++++-------------------
src/backend/optimizer/prep/prepunion.c |   7 +
2 files changed, 116 insertions(+), 143 deletions(-)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers