aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/allpaths.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-02-29 10:14:12 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-02-29 10:14:12 -0500
commit05893712cc9950b7c4c312aa9d3d444375bf15a2 (patch)
tree47299d7f585f0c266c0cdb32f9c0e9c9fc83fa3c /src/backend/optimizer/path/allpaths.c
parent41fedc24626696fdf55d0c43131d91757dbe1c66 (diff)
downloadpostgresql-05893712cc9950b7c4c312aa9d3d444375bf15a2.tar.gz
postgresql-05893712cc9950b7c4c312aa9d3d444375bf15a2.zip
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.
Diffstat (limited to 'src/backend/optimizer/path/allpaths.c')
-rw-r--r--src/backend/optimizer/path/allpaths.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c
index 870a46ce74e..6233be3e50c 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)
{