7c5d0ae707
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
21 lines
410 B
Makefile
21 lines
410 B
Makefile
# contrib/file_fdw/Makefile
|
|
|
|
MODULES = file_fdw
|
|
|
|
EXTENSION = file_fdw
|
|
DATA = file_fdw--1.0.sql
|
|
|
|
REGRESS = file_fdw
|
|
|
|
EXTRA_CLEAN = sql/file_fdw.sql expected/file_fdw.out
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/file_fdw
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|