diff options
Diffstat (limited to 'contrib/file_fdw/file_fdw.c')
-rw-r--r-- | contrib/file_fdw/file_fdw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index f13316b27da..cf12710b710 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -806,7 +806,7 @@ check_selective_binary_conversion(RelOptInfo *baserel, } /* Collect all the attributes needed for joins or final output. */ - pull_varattnos((Node *) baserel->reltargetlist, baserel->relid, + pull_varattnos((Node *) baserel->reltarget.exprs, baserel->relid, &attrs_used); /* Add all the attributes used by restriction clauses. */ @@ -938,7 +938,7 @@ estimate_size(PlannerInfo *root, RelOptInfo *baserel, */ int tuple_width; - tuple_width = MAXALIGN(baserel->width) + + tuple_width = MAXALIGN(baserel->reltarget.width) + MAXALIGN(SizeofHeapTupleHeader); ntuples = clamp_row_est((double) stat_buf.st_size / (double) tuple_width); |