]> granicus.if.org Git - postgresql/commit
Centralize executor-related partitioning code.
authorRobert Haas <rhaas@postgresql.org>
Wed, 15 Nov 2017 15:23:28 +0000 (10:23 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 15 Nov 2017 15:26:25 +0000 (10:26 -0500)
commit4e5fe9ad19e14af360de7970caa8b150436c9dec
tree95526a43235178d03305a6e1dd632d16b66f6870
parentcd8ce3a22c0b48d32ffe6543837ba3bb647ac2b2
Centralize executor-related partitioning code.

Some code is moved from partition.c, which has grown very quickly lately;
splitting the executor parts out might help to keep it from getting
totally out of control.  Other code is moved from execMain.c.  All is
moved to a new file execPartition.c.  get_partition_for_tuple now has
a new interface that more clearly separates executor concerns from
generic concerns.

Amit Langote.  A slight comment tweak by me.

Discussion: http://postgr.es/m/1f0985f8-3b61-8bc4-4350-baa6d804cb6d@lab.ntt.co.jp
src/backend/catalog/partition.c
src/backend/commands/copy.c
src/backend/executor/Makefile
src/backend/executor/execMain.c
src/backend/executor/execPartition.c [new file with mode: 0644]
src/backend/executor/nodeModifyTable.c
src/include/catalog/partition.h
src/include/executor/execPartition.h [new file with mode: 0644]
src/include/executor/executor.h