From: Tom Lane Date: Mon, 29 Feb 2016 15:14:12 +0000 (-0500) Subject: Fix build under OPTIMIZER_DEBUG. X-Git-Tag: REL9_6_BETA1~639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05893712cc9950b7c4c312aa9d3d444375bf15a2;p=postgresql Fix build under OPTIMIZER_DEBUG. In commit 19a541143a09c067 I replaced RelOptInfo.width with RelOptInfo.reltarget.width, but I missed updating debug_print_rel() for that because it's not compiled by default. Reported by Salvador Fandino, patch by Michael Paquier. --- diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 870a46ce74..6233be3e50 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -2957,7 +2957,7 @@ debug_print_rel(PlannerInfo *root, RelOptInfo *rel) printf("RELOPTINFO ("); print_relids(rel->relids); - printf("): rows=%.0f width=%d\n", rel->rows, rel->width); + printf("): rows=%.0f width=%d\n", rel->rows, rel->reltarget.width); if (rel->baserestrictinfo) {