]> granicus.if.org Git - postgresql/commit
Add contrib/file_fdw foreign-data wrapper for reading files via COPY.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Feb 2011 19:06:59 +0000 (14:06 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Feb 2011 19:06:59 +0000 (14:06 -0500)
commit7c5d0ae7078456bfeedb2103c45b9a32285c2631
tree5f02dc38c3c57ab676b5d914f6e27be3259f3367
parentbb742407947ad1cbf19355d24282380d576e7654
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
19 files changed:
contrib/Makefile
contrib/README
contrib/file_fdw/.gitignore [new file with mode: 0644]
contrib/file_fdw/Makefile [new file with mode: 0644]
contrib/file_fdw/data/agg.bad [new file with mode: 0644]
contrib/file_fdw/data/agg.csv [new file with mode: 0644]
contrib/file_fdw/data/agg.data [new file with mode: 0644]
contrib/file_fdw/expected/.gitignore [new file with mode: 0644]
contrib/file_fdw/file_fdw--1.0.sql [new file with mode: 0644]
contrib/file_fdw/file_fdw.c [new file with mode: 0644]
contrib/file_fdw/file_fdw.control [new file with mode: 0644]
contrib/file_fdw/input/file_fdw.source [new file with mode: 0644]
contrib/file_fdw/output/file_fdw.source [new file with mode: 0644]
contrib/file_fdw/sql/.gitignore [new file with mode: 0644]
doc/src/sgml/contrib.sgml
doc/src/sgml/file-fdw.sgml [new file with mode: 0644]
doc/src/sgml/filelist.sgml
src/backend/commands/copy.c
src/include/commands/copy.h