projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41fedc2
)
Fix build under OPTIMIZER_DEBUG.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 29 Feb 2016 15:14:12 +0000
(10:14 -0500)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/optimizer/path/allpaths.c
b/src/backend/optimizer/path/allpaths.c
index 870a46ce74e2da7d025a206058277cf5f5f89794..6233be3e50c798eaa2e07b5fd3982cbbbb2e80bf 100644
(file)
--- 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)
{