diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-26 12:03:27 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-26 12:03:27 -0400 |
commit | e8d5dd6be79ed532710922105c31a2d25b14430f (patch) | |
tree | 32e30b46dfdf7300f68053952e299fb6df7e2232 /src/backend/access/gist/gist.c | |
parent | 1af25ca0c2d9d110bd7bd5be2a14fb20cd93ee78 (diff) | |
download | postgresql-e8d5dd6be79ed532710922105c31a2d25b14430f.tar.gz postgresql-e8d5dd6be79ed532710922105c31a2d25b14430f.zip |
Get rid of duplicate child RTE for a partitioned table.
We've been creating duplicate RTEs for partitioned tables just
because we do so for regular inheritance parent tables. But unlike
regular-inheritance parents which are themselves regular tables
and thus need to be scanned, partitioned tables don't need the
extra RTE.
This makes the conditions for building a child RTE the same as those
for building an AppendRelInfo, allowing minor simplification in
expand_single_inheritance_child. Since the planner's actual processing
is driven off the AppendRelInfo list, nothing much changes beyond that,
we just have one fewer useless RTE entry.
Amit Langote, reviewed and hacked a bit by me
Discussion: https://postgr.es/m/9d7c5112-cb99-6a47-d3be-cf1ee6862a1d@lab.ntt.co.jp
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions