From f8bd267d35503109255c99eae96c86ba8ba1b56f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 5 Jul 2011 18:46:03 -0400 Subject: Make the file_fdw validator check that a filename option has been provided. This was already a runtime failure condition, but it's better to check at validation time if possible. Lightly modified version of a patch by Shigeru Hanada. --- contrib/file_fdw/input/file_fdw.source | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/file_fdw/input') diff --git a/contrib/file_fdw/input/file_fdw.source b/contrib/file_fdw/input/file_fdw.source index 9ff7235a124..1405752819c 100644 --- a/contrib/file_fdw/input/file_fdw.source +++ b/contrib/file_fdw/input/file_fdw.source @@ -59,6 +59,7 @@ CREATE FOREIGN TABLE tbl () SERVER file_server OPTIONS (format 'csv', delimiter '); -- ERROR CREATE FOREIGN TABLE tbl () SERVER file_server OPTIONS (format 'csv', null ' '); -- ERROR +CREATE FOREIGN TABLE tbl () SERVER file_server; -- ERROR CREATE FOREIGN TABLE agg_text ( a int2, -- cgit v1.2.3