diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-06-11 17:14:46 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-06-11 17:35:53 -0400 |
commit | 4e23236403336052a000c8bf85720e9d65ba8036 (patch) | |
tree | 2cf410c79b63929a0b62e144a7cfbb6f4598e6f4 /src/backend/optimizer/path/allpaths.c | |
parent | e5d11b91e42e20ff80effb946cb461c490d491ba (diff) |
Improve commentary about run-time partition pruning data structures.
No code changes except for a couple of new Asserts.
David Rowley and Tom Lane
Discussion: https://postgr.es/m/CAKJS1f-6GODRNgEtdPxCnAPme2h2hTztB6LmtfdmcYAAOE0kQg@mail.gmail.com
Diffstat (limited to 'src/backend/optimizer/path/allpaths.c')
-rw-r--r-- | src/backend/optimizer/path/allpaths.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 477b9f7fb81..146298828d8 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -1451,7 +1451,8 @@ add_paths_to_append_rel(PlannerInfo *root, RelOptInfo *rel, /* * If we need to build partitioned_rels, accumulate the partitioned - * rels for this child. + * rels for this child. We must ensure that parents are always listed + * before their child partitioned tables. */ if (build_partitioned_rels) { |