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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 27 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy