forked from EnterpriseDB/hdfs_fdw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hdfs_fdw--1.0.sql
33 lines (28 loc) · 897 Bytes
/
hdfs_fdw--1.0.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*-------------------------------------------------------------------------
*
* hdfs_fdw--1.0.sql
* Foreign-data wrapper for remote Hadoop servers
*
* Portions Copyright (c) 2012-2016, PostgreSQL Global Development Group
*
* Portions Copyright (c) 2004-2016, EnterpriseDB Corporation.
*
* IDENTIFICATION
* hdfs_fdw--1.0.sql
*
*-------------------------------------------------------------------------
*/
/* contrib/hdfs_fdw/hdfs_fdw--1.0.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION hdfs_fdw" to load this file. \quit
CREATE FUNCTION hdfs_fdw_handler()
RETURNS fdw_handler
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
CREATE FUNCTION hdfs_fdw_validator(text[], oid)
RETURNS void
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
CREATE FOREIGN DATA WRAPPER hdfs_fdw
HANDLER hdfs_fdw_handler
VALIDATOR hdfs_fdw_validator;