/*------------------------------------------------------------------------- * * foreign-data wrapper for CouchDB * * Copyright (c) 2011, PostgreSQL Global Development Group * * This software is released under the PostgreSQL Licence * * Author: Zheng Yang * * IDENTIFICATION * couchdb_fdw/couchdb_fdw--1.0.sql * *------------------------------------------------------------------------- */ CREATE FUNCTION couchdb_fdw_handler() RETURNS fdw_handler AS 'MODULE_PATHNAME' LANGUAGE C STRICT; CREATE FUNCTION couchdb_fdw_validator(text[], oid) RETURNS void AS 'MODULE_PATHNAME' LANGUAGE C STRICT; CREATE FOREIGN DATA WRAPPER couchdb_fdw HANDLER couchdb_fdw_handler VALIDATOR couchdb_fdw_validator;