Add regression tests for file_fdw.
authorShigeru Hanada <[email protected]>
Fri, 1 Jul 2011 09:46:05 +0000 (18:46 +0900)
committerShigeru Hanada <[email protected]>
Fri, 1 Jul 2011 09:46:05 +0000 (18:46 +0900)
The filename option is required for every DDL which manipulrates any
file_fdw foreign table.

contrib/file_fdw/input/file_fdw.source
contrib/file_fdw/output/file_fdw.source

index 9ff7235a12468f270324419ca65522577a7ca17d..8d6dfa3c4ab27a92dc8e237db26217f5deef8d9b 100644 (file)
@@ -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 OPTIONS (format 'csv');                       -- ERROR
 
 CREATE FOREIGN TABLE agg_text (
    a   int2,
index 2ba36c936852d3d66643d23f98854e0da5ae3bca..6cc6746b0ccc1187d4099c2ef72aa077a13d6db0 100644 (file)
@@ -75,6 +75,8 @@ ERROR:  COPY delimiter cannot be newline or carriage return
 CREATE FOREIGN TABLE tbl () SERVER file_server OPTIONS (format 'csv', null '
 ');       -- ERROR
 ERROR:  COPY null representation cannot use newline or carriage return
+CREATE FOREIGN TABLE tbl () SERVER file_server OPTIONS (format 'csv');                       -- ERROR
+ERROR:  filename is required for file_fdw foreign tables
 CREATE FOREIGN TABLE agg_text (
    a   int2,
    b   float4