-
Notifications
You must be signed in to change notification settings - Fork 28
/
parquet_s3_fdw--0.3.sql
60 lines (51 loc) · 1.52 KB
/
parquet_s3_fdw--0.3.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION parquet_s3_fdw" to load this file. \quit
CREATE FUNCTION import_parquet_s3(
tablename text,
schemaname text,
servername text,
func regproc,
arg jsonb,
options jsonb default NULL)
RETURNS VOID
AS 'MODULE_PATHNAME'
LANGUAGE C;
CREATE FUNCTION import_parquet_s3_explicit(
tablename text,
schemaname text,
servername text,
attnames text[],
atttypes regtype[],
func regproc,
arg jsonb,
options jsonb default NULL)
RETURNS VOID
AS 'MODULE_PATHNAME', 'import_parquet_s3_with_attrs'
LANGUAGE C;
CREATE FUNCTION parquet_s3_fdw_handler()
RETURNS fdw_handler
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
CREATE FUNCTION parquet_s3_fdw_validator(text[], oid)
RETURNS void
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
CREATE OR REPLACE FUNCTION parquet_s3_fdw_version()
RETURNS pg_catalog.int4 STRICT
AS 'MODULE_PATHNAME' LANGUAGE C;
CREATE FOREIGN DATA WRAPPER parquet_s3_fdw
HANDLER parquet_s3_fdw_handler
VALIDATOR parquet_s3_fdw_validator;
CREATE FUNCTION parquet_s3_fdw_get_connections (OUT server_name text,
OUT valid boolean)
RETURNS SETOF record
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT PARALLEL RESTRICTED;
CREATE FUNCTION parquet_s3_fdw_disconnect (text)
RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT PARALLEL RESTRICTED;
CREATE FUNCTION parquet_s3_fdw_disconnect_all ()
RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT PARALLEL RESTRICTED;