/* contrib/oik_fdw/oik_fdw--1.0.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION oik_fdw" to load this file. \quit

CREATE FUNCTION oik_systemtime()
RETURNS timestamp
AS 'MODULE_PATHNAME','oik_systemtime'
LANGUAGE C STRICT;

CREATE FUNCTION oik_fdw_handler()
RETURNS fdw_handler
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;

CREATE FUNCTION oik_fdw_validator(text[], oid)
RETURNS void
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;

CREATE FOREIGN DATA WRAPPER oik_fdw
  HANDLER oik_fdw_handler
  VALIDATOR oik_fdw_validator;
