]> granicus.if.org Git - postgresql/commitdiff
Fix build under OPTIMIZER_DEBUG.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Feb 2016 15:14:12 +0000 (10:14 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Feb 2016 15:14:12 +0000 (10:14 -0500)
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.

src/backend/optimizer/path/allpaths.c

index 870a46ce74e2da7d025a206058277cf5f5f89794..6233be3e50c798eaa2e07b5fd3982cbbbb2e80bf 100644 (file)
@@ -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)
        {