postgres.git / summary / log / commit / refs
commit 05893712cc9950b7c4c312aa9d3d444375bf15a2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon Feb 29 15:14:12 2016 +0000
First released in: 9.6.0
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.
src/backend/optimizer/path/allpaths.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
{
[parent: 41fedc246266]