mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
708d165ddb
This commit adds function postgres_fdw_get_connections() to return the foreign server names of all the open connections that postgres_fdw established from the local session to the foreign servers. This function also returns whether each connection is valid or not. This function is useful when checking all the open foreign server connections. If we found some connection to drop, from the result of function, probably we can explicitly close them by the function that upcoming commit will add. This commit bumps the version of postgres_fdw to 1.1 since it adds new function. Author: Bharath Rupireddy, tweaked by Fujii Masao Reviewed-by: Zhijie Hou, Alexey Kondratov, Zhihong Yu, Fujii Masao Discussion: https://postgr.es/m/2d5cb0b3-a6e8-9bbb-953f-879f47128faa@oss.nttdata.com
32 lines
666 B
Makefile
32 lines
666 B
Makefile
# contrib/postgres_fdw/Makefile
|
|
|
|
MODULE_big = postgres_fdw
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
connection.o \
|
|
deparse.o \
|
|
option.o \
|
|
postgres_fdw.o \
|
|
shippable.o
|
|
PGFILEDESC = "postgres_fdw - foreign data wrapper for PostgreSQL"
|
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
SHLIB_LINK_INTERNAL = $(libpq)
|
|
|
|
EXTENSION = postgres_fdw
|
|
DATA = postgres_fdw--1.0.sql postgres_fdw--1.0--1.1.sql
|
|
|
|
REGRESS = postgres_fdw
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
SHLIB_PREREQS = submake-libpq
|
|
subdir = contrib/postgres_fdw
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|