]> granicus.if.org Git - postgresql/commit
Move inheritance expansion code into its own file
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 10 Jan 2019 17:54:31 +0000 (14:54 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 10 Jan 2019 17:54:31 +0000 (14:54 -0300)
commitb60c39759908bb2a2dbcfc108ec19bdbdcc278e8
treebdfa3231c4a98e58ab0fae1d36d9117658fc2d06
parentdacadcd1f32873d930b3953d3055dc7cb9548e48
Move inheritance expansion code into its own file

This commit moves expand_inherited_tables and underlings from
optimizer/prep/prepunionc.c to optimizer/utils/inherit.c.
Also, all of the AppendRelInfo-based expression manipulation routines
are moved to optimizer/utils/appendinfo.c.

No functional code changes.  One exception is the introduction of
make_append_rel_info, but that's still just moving around code.

Also, stop including <limits.h> in prepunion.c, which no longer needs
it since 3fc6e2d7f5b6.  I (Álvaro) noticed this because Amit was copying
that to inherit.c, which likewise doesn't need it.

Author: Amit Langote
Discussion: https://postgr.es/m/3be67028-a00a-502c-199a-da00eec8fb6e@lab.ntt.co.jp
15 files changed:
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/equivclass.c
src/backend/optimizer/path/joinrels.c
src/backend/optimizer/plan/planmain.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/Makefile
src/backend/optimizer/util/appendinfo.c [new file with mode: 0644]
src/backend/optimizer/util/inherit.c [new file with mode: 0644]
src/backend/optimizer/util/pathnode.c
src/backend/optimizer/util/relnode.c
src/backend/partitioning/partprune.c
src/include/optimizer/appendinfo.h [new file with mode: 0644]
src/include/optimizer/inherit.h [new file with mode: 0644]
src/include/optimizer/prep.h