Add contrib/file_fdw foreign-data wrapper for reading files via COPY.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7c5d0ae7078456bfeedb2103c45b9a32285c2631
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-02-20T19:06:59Z
Releases: 9.1.0
Add contrib/file_fdw foreign-data wrapper for reading files via COPY.

This is both very useful in its own right, and an important test case
for the core FDW support.

This commit includes a small refactoring of copy.c to expose its option
checking code as a separately callable function.  The original patch
submission duplicated hundreds of lines of that code, which seemed pretty
unmaintainable.

Shigeru Hanada, reviewed by Itagaki Takahiro and Tom Lane

Files