prev = lc;
}
- /* The filename is required optiono. */
+ /* Retrieve force_not_null from pg_attribute and append it to the list. */
+ options = list_concat(options, get_force_not_null(foreigntableid));
+
+ /*
+ * The validator should have checked that a filename was included in the
+ * options, but check again, just in case.
+ */
if (*filename == NULL)
- ereport(ERROR,
- (errcode(ERRCODE_FDW_UNABLE_TO_CREATE_REPLY),
- errmsg("filename is required for file_fdw foreign tables")));
+ elog(ERROR, "filename is required for file_fdw foreign tables");
+
*other_options = options;
}