space within a table
by Tatsuo Ishii <ishii@sraoss.co.jp>
+postgresql_fdw -
+ Foreign-data wrapper for external PostgreSQL server.
+
seg -
Confidence-interval datatype (GiST indexing example)
by Gene Selkov, Jr. <selkovjr@mcs.anl.gov>
PG_CPPFLAGS = -I$(libpq_srcdir)
OBJS = postgresql_fdw.o
SHLIB_LINK = $(libpq)
+SHLIB_PREREQS = submake-libpq
-DATA_built = postgresql_fdw.sql
-DATA = uninstall_postgresql_fdw.sql
-REGRESS = postgresql_fdw
+EXTENSION = postgresql_fdw
+DATA = postgresql_fdw--1.0.sql postgresql_fdw--unpachaged--1.0.sql
+REGRESS = postgresql_fdw
ifdef USE_PGXS
PG_CONFIG = pg_config
-SET SEARCH_PATH = public;
SET DATESTYLE = 'Postgres, MDY';
-- =============================================================================
-- Prepare section
-- =============================================================================
+CREATE EXTENSION postgresql_fdw;
-- connect database for regression test
\c contrib_regression
--- install postgresql_fdw module
-SET client_min_messages = warning;
-\set ECHO none
-RESET client_min_messages;
-- define fdw-related objects
CREATE SERVER loopback1 FOREIGN DATA WRAPPER postgresql_fdw
OPTIONS (dbname 'contrib_regression');
DEALLOCATE st;
-- clean up
-DROP FOREIGN DATA WRAPPER postgresql_fdw CASCADE;
+DROP TABLE t1 CASCADE;
+DROP EXTENSION postgresql_fdw CASCADE;
NOTICE: drop cascades to 6 other objects
DETAIL: drop cascades to server loopback1
drop cascades to user mapping for public
drop cascades to server loopback2
drop cascades to user mapping for public
drop cascades to foreign table ft2
-DROP TABLE t1 CASCADE;
-/* contrib/postgresql/postgresql.sql.in */
-
--- Adjust this setting to control where the objects get created.
-set search_path = public;
+/* contrib/postgresql_fdw/postgresql_fdw--1.0.sql */
CREATE OR REPLACE FUNCTION postgresql_fdw_handler ()
RETURNS fdw_handler
--- /dev/null
+# postgresql_fdw extension
+comment = 'Foreign-data wrapepr for external PostgreSQL server'
+default_version = '1.0'
+module_pathname = '$libdir/postgresql_fdw'
+relocatable = true
-SET SEARCH_PATH = public;
SET DATESTYLE = 'Postgres, MDY';
-- =============================================================================
-- Prepare section
-- =============================================================================
+CREATE EXTENSION postgresql_fdw;
+
-- connect database for regression test
\c contrib_regression
--- install postgresql_fdw module
-SET client_min_messages = warning;
-\set ECHO none
-\i postgresql_fdw.sql
-\set ECHO all
-RESET client_min_messages;
-
-- define fdw-related objects
CREATE SERVER loopback1 FOREIGN DATA WRAPPER postgresql_fdw
OPTIONS (dbname 'contrib_regression');
DEALLOCATE st;
-- clean up
-DROP FOREIGN DATA WRAPPER postgresql_fdw CASCADE;
DROP TABLE t1 CASCADE;
+DROP EXTENSION postgresql_fdw CASCADE;