前言
数据库扩展插件¶
SeaboxSQL/SeaboxMPP数据库提供多个扩展插件,通过这些插件可提升数据库在不同应用场景的能力。
以下是SeaboxSQL/SeaboxMPP数据库提供的插件清单,其中部分是PostgreSQL生态插件的优化改良版本,并通过了海盒数据库团队的迭代测试。
插件名称 | PG生态或自主研发 | 功能简介 |
---|---|---|
catalog_compat | ||
citext | PG生态 | citext模块提供不区分大小写字符串类型。 |
dameng_fdw | 自主研发 | 达梦数据库外部表连接器,支持DM7、DM8. |
dataflow | 自主研发 | 数据入库插件,支持实时流式和批量从Oracle数据库同步数据。 |
dblink | PG生态 | dblink 模块支持从数据库会话中连接到其他SeaboxMPP/SeaboxSQL数据库,包括PG生态数据库。 |
ddlx | PG生态 | 获取生成对象创建DDL的扩展插件 |
fuzzystrmatch | PG生态 | 用来判断字符串之间的相似性和距离的插件 |
gp_fdw | 自主研发 | greenplum数据库外部表连接器,支持节点间并行数据传输。 |
hdfs_fdw | 自主研发 | HDFS外部表连接器,支持节点间并行数据传输。 |
hive_fdw | 自主研发 | Hive外部表连接器,支持节点间并行数据传输。 |
hstore | PG生态 | 用来在一个数据库的值中存储键值对(key-value)的插件 |
kafka_fdw | 自主研发 | kafka外部表连接器,支持流式快速入库机制。 |
myfce | PG生态 | MySQL语法兼容插件,提供部分MySQL常见函数、语法。 |
odbc_fdw | 自主研发 | ODBC外部表连接器,通过该扩展可连接MySQL、DB2、SQL Server等数据库 |
oracle_fdw | 自主研发 | Oracle数据库外部表连接器,支持并行入库等优化策略。 |
orafce | PG生态 | Oracle数据库语法兼容插件,提供部分Oracle常见函数、语法、系统视图等。 |
pageinspect | ||
pg_buffercache | PG生态 | |
pgcrypto | PG生态 | pgcrypto 扩展模块用于 SeaboxSQL/SeaboxMPP中实现加密和解密功能。 |
pg_exttable_fdw | PG生态 | |
pg_fdw | PG生态 | PG数据库外部表连接器,支持节点间并行数据传输。 |
pg_proctab | PG生态 | |
pg_stat_statements | PG生态 | |
plpgsql | PG生态 | |
plpython3u | PG生态 | |
pxf_control | PG生态 | |
pxf_fdw | PG生态 | |
sc_debug_numexecutors | 自主研发 | |
sc_inject_fault | 自主研发 | |
sc_internal_tools | 自主研发 | |
sdaudit | 自主研发 | |
sdcnparser | PG生态 | |
seabox_fdw | 自主研发 | SeaboxMPP/SeaboxSQL数据库外部表连接器,支持节点间并行数据传输。 |
sslinfo | ||
system_stats | ||
tablefunc | ||
tsm_system_rows | ||
udfe | ||
uuid-ossp | ||
postgis | PG生态 | PostGIS是PostgreSQL对象关系数据库的空间数据库扩展,SeaboxSQL/SeaboxMPP数据库也通过该扩展增加对地理对象的支持,并允许在SQL中运行位置查询。 |
madlib | PG生态 | MADlib是一个在PG内核数据库中运行机器学习、图计算模型的开源库。除提供数理统计通用函数、存储过程之外,还提供一系列比较经典的监督、非监督学习算法库。 |
上述插件中,除postgis外,其他扩展均为内置扩展,即数据库安装后,这些扩展在安装目录$SDHOME/share/seaboxsql/extension/
路径下均可查到(madlib扩展不在该路径下),具体如下:
[seabox@mpp1 extension]$ pwd
/usr/local/seaboxmpp/seaboxmpp-db/share/seaboxsql/extension
[seabox@mpp1 extension]$ ll *.control
-rw-r--r--. 1 seabox seabox 89 11月 28 00:43 catalog_compat.control
-rw-r--r--. 1 seabox seabox 158 11月 28 00:43 citext.control
-rw-r--r--. 1 seabox seabox 156 11月 28 00:43 dameng_fdw.control
-rw-r--r--. 1 seabox seabox 129 11月 28 00:43 dataflow.control
-rw-r--r--. 1 seabox seabox 169 11月 28 00:43 dblink.control
-rw-r--r--. 1 seabox seabox 78 11月 28 00:43 ddlx.control
-rw-r--r--. 1 seabox seabox 175 11月 28 00:43 fuzzystrmatch.control
-rw-r--r--. 1 seabox seabox 151 11月 28 00:43 gp_fdw.control
-rw-r--r--. 1 seabox seabox 146 11月 28 00:43 hdfs_fdw.control
-rw-r--r--. 1 seabox seabox 146 11月 28 00:43 hive_fdw.control
-rw-r--r--. 1 seabox seabox 158 11月 28 00:43 hstore.control
-rw-r--r--. 1 seabox seabox 153 11月 28 00:43 kafka_fdw.control
-rw-r--r--. 1 seabox seabox 187 11月 28 00:43 myfce.control
-rw-r--r--. 1 seabox seabox 150 11月 28 00:43 odbc_fdw.control
-rw-r--r--. 1 seabox seabox 156 11月 28 00:43 oracle_fdw.control
-rw-r--r--. 1 seabox seabox 205 11月 28 00:43 orafce.control
-rw-r--r--. 1 seabox seabox 173 11月 28 00:43 pageinspect.control
-rw-r--r--. 1 seabox seabox 157 11月 28 00:43 pg_buffercache.control
-rw-r--r--. 1 seabox seabox 137 11月 28 00:43 pgcrypto.control
-rw-r--r--. 1 seabox seabox 177 11月 28 00:43 pg_exttable_fdw.control
-rw-r--r--. 1 seabox seabox 159 11月 28 00:43 pg_fdw.control
-rw-r--r--. 1 seabox seabox 158 11月 28 00:43 pg_proctab.control
-rw-r--r--. 1 seabox seabox 191 11月 28 00:43 pg_stat_statements.control
-rw-r--r--. 1 seabox seabox 179 11月 28 00:43 plpgsql.control
-rw-r--r--. 1 seabox seabox 196 11月 28 00:43 plpython3u.control
-rw-r--r--. 1 seabox seabox 104 11月 28 00:43 pxf_control.control
-rw-r--r--. 1 seabox seabox 178 11月 28 00:43 pxf_fdw.control
-rw-r--r--. 1 seabox seabox 191 11月 28 00:43 sc_debug_numexecutors.control
-rw-r--r--. 1 seabox seabox 172 11月 28 00:43 sc_inject_fault.control
-rw-r--r--. 1 seabox seabox 86 11月 28 00:43 sc_internal_tools.control
-rw-r--r--. 1 seabox seabox 145 11月 28 00:43 sdaudit.control
-rw-r--r--. 1 seabox seabox 135 11月 28 00:43 sdcnparser.control
-rw-r--r--. 1 seabox seabox 160 11月 28 00:43 seabox_fdw.control
-rw-r--r--. 1 seabox seabox 146 11月 28 00:43 sslinfo.control
-rw-r--r--. 1 seabox seabox 153 11月 28 00:43 system_stats.control
-rw-r--r--. 1 seabox seabox 174 11月 28 00:43 tablefunc.control
-rw-r--r--. 1 seabox seabox 186 11月 28 00:43 tsm_system_rows.control
-rw-r--r--. 1 seabox seabox 136 11月 28 00:43 udfe.control
-rw-r--r--. 1 seabox seabox 163 11月 28 00:43 uuid-ossp.control
上述扩展中,pg_exttable_fdw、ddlx、uuid_ossp、orafce、sd_stat_perf、pg_stat_statment扩展在SeaboxMPP数据库完成初始化时默认安装到sc_toolkit模式中。
postgis、madlib外的扩展,在SeaboxSQL/SeaboxMPP中,均可通过类似如下命令进行创建:
CREATE EXTENSION extension_name;
SeaboxMPP/SeaboxSQL数据库提供独立的postgis扩展安装包,详细信息请参阅postgis.
SeaboxMPP/SeaboxSQL数据库内置madlib安装程序,madlib插件安装及使用请参阅madlib