From: Robert Haas Date: Tue, 12 Dec 2017 15:52:15 +0000 (-0500) Subject: Remove bug from OPTIMIZER_DEBUG code for partition-wise join. X-Git-Tag: REL_11_BETA1~1086 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d329dc2ea4bfac84ec60ba14b96561a7508bb37b;p=thirdparty%2Fpostgresql.git Remove bug from OPTIMIZER_DEBUG code for partition-wise join. Etsuro Fujita, reviewed by Ashutosh Bapat Discussion: http://postgr.es/m/5A2A60E6.6000008@lab.ntt.co.jp --- diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 47986ba80a5..0e8463e4a3a 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -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);