]> granicus.if.org Git - postgresql/commitdiff
Remove bug from OPTIMIZER_DEBUG code for partition-wise join.
authorRobert Haas <rhaas@postgresql.org>
Tue, 12 Dec 2017 15:52:15 +0000 (10:52 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 12 Dec 2017 15:52:15 +0000 (10:52 -0500)
Etsuro Fujita, reviewed by Ashutosh Bapat

Discussion: http://postgr.es/m/5A2A60E6.6000008@lab.ntt.co.jp

src/backend/optimizer/path/allpaths.c

index 47986ba80a58ea464aafae6427baaf728aa72838..0e8463e4a3aa0cae43cfe5747f27add40ad2fb59 100644 (file)
@@ -3457,7 +3457,7 @@ generate_partition_wise_join_paths(PlannerInfo *root, RelOptInfo *rel)
                set_cheapest(child_rel);
 
 #ifdef OPTIMIZER_DEBUG
-               debug_print_rel(root, rel);
+               debug_print_rel(root, child_rel);
 #endif
 
                live_children = lappend(live_children, child_rel);