1 Star 0 Fork 0

imboy-tripartite-deps/influxdb_fdw

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
influxdb_fdw--1.0.sql 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
Nguyen Xuan Hai 提交于 2023-03-28 07:56 . RELEASE_v2.0.0
/*-------------------------------------------------------------------------
*
* InfluxDB Foreign Data Wrapper for PostgreSQL
*
* Portions Copyright (c) 2018, TOSHIBA CORPORATION
*
* IDENTIFICATION
* influxdb_fdw--1.0.sql
*
*-------------------------------------------------------------------------
*/
CREATE FUNCTION influxdb_fdw_handler()
RETURNS fdw_handler
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
CREATE FUNCTION influxdb_fdw_validator(text[], oid)
RETURNS void
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
CREATE FOREIGN DATA WRAPPER influxdb_fdw
HANDLER influxdb_fdw_handler
VALIDATOR influxdb_fdw_validator;
CREATE FUNCTION last_value_sfunc(anyelement, timestamp with time zone, anyelement)
RETURNS anyelement
IMMUTABLE
LANGUAGE PLPGSQL
AS $$
BEGIN
RAISE 'Cannot execute this function in PostgreSQL';
END;
$$;
CREATE FUNCTION last_value_finalfunc_bigint(anyelement)
RETURNS anyelement
IMMUTABLE
LANGUAGE PLPGSQL
AS $$
BEGIN
RAISE 'Cannot execute this function in PostgreSQL';
END;
$$;
CREATE AGGREGATE last (timestamp with time zone, anyelement)
(
sfunc = last_value_sfunc,
stype = anyelement
);
CREATE FUNCTION influx_time(timestamp with time zone, interval, interval) RETURNS timestamp with time zone AS $$
BEGIN
RAISE 'Cannot execute this function in PostgreSQL';
END
$$ LANGUAGE plpgsql IMMUTABLE;
CREATE FUNCTION influx_time(timestamp with time zone, interval) RETURNS timestamp with time zone AS $$
BEGIN
RAISE 'Cannot execute this function in PostgreSQL';
END
$$ LANGUAGE plpgsql IMMUTABLE;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/imboy-tripartite-deps/influxdb_fdw.git
git@gitee.com:imboy-tripartite-deps/influxdb_fdw.git
imboy-tripartite-deps
influxdb_fdw
influxdb_fdw
master

搜索帮助