Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d0d75c4

Browse files
committed
Add postgres_fdw contrib module.
There's still a lot of room for improvement, but it basically works, and we need this to be present before we can do anything much with the writable-foreign-tables patch. So let's commit it and get on with testing. Shigeru Hanada, reviewed by KaiGai Kohei and Tom Lane
1 parent f435cd1 commit d0d75c4

28 files changed

+4839
-55
lines changed

contrib/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ SUBDIRS = \
4343
pgcrypto \
4444
pgrowlocks \
4545
pgstattuple \
46+
postgres_fdw \
4647
seg \
4748
spi \
4849
tablefunc \

contrib/postgres_fdw/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated subdirectories
2+
/log/
3+
/results/
4+
/tmp_check/

contrib/postgres_fdw/Makefile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# contrib/postgres_fdw/Makefile
2+
3+
MODULE_big = postgres_fdw
4+
OBJS = postgres_fdw.o option.o deparse.o connection.o
5+
6+
PG_CPPFLAGS = -I$(libpq_srcdir)
7+
SHLIB_LINK = $(libpq)
8+
SHLIB_PREREQS = submake-libpq
9+
10+
EXTENSION = postgres_fdw
11+
DATA = postgres_fdw--1.0.sql
12+
13+
REGRESS = postgres_fdw
14+
15+
# the db name is hard-coded in the tests
16+
override USE_MODULE_DB =
17+
18+
ifdef USE_PGXS
19+
PG_CONFIG = pg_config
20+
PGXS := $(shell $(PG_CONFIG) --pgxs)
21+
include $(PGXS)
22+
else
23+
subdir = contrib/postgres_fdw
24+
top_builddir = ../..
25+
include $(top_builddir)/src/Makefile.global
26+
include $(top_srcdir)/contrib/contrib-global.mk
27+
endif

0 commit comments

Comments
 (0)