}
prev = lc;
}
+ if (*filename == NULL)
+ ereport(ERROR,
+ (errcode(ERRCODE_FDW_UNABLE_TO_CREATE_REPLY),
+ errmsg("filename is required for file_fdw foreign tables")));
*other_options = options;
}
/* Fetch options --- we only need filename at this point */
fileGetOptions(foreigntableid, &filename, &options);
- if (filename == NULL)
- ereport(ERROR,
- (errcode(ERRCODE_FDW_UNABLE_TO_CREATE_REPLY),
- errmsg("filename is required for file_fdw foreign tables")));
/* Construct FdwPlan with cost estimates */
fdwplan = makeNode(FdwPlan);