
# 支持的插件
Babelfish支持的插件列表如[表1]所示。
 表1支持的插件列表 
| 插件列表                                                                                          | 功能简介                                                         |
|:---|:---|
| [address_standardizer](https://postgis.net/docs/manual-2.5/Address_Standardizer.html)         | 标准化地址数据，使其符合邮政标准格式。                                          |
| [address_standardizer_data_us](https://postgis.net/docs/manual-2.5/Address_Standardizer.html) | 提供美国地址标准化所需的参考数据。                                            |
| [amcheck](https://www.postgresql.org/docs/current/amcheck.html)                               | 检查 B-tree 索引的完整性，防止数据损坏。                                     |
| [autoinc (contrib-spi)](https://www.postgresql.org/docs/13/contrib-spi.html)                  | 自动生成递增的序列值，常用于自增 ID 管理。                                      |
| [dblink](http://www.postgresql.org/docs/12/dblink.html)                                       | 允许在 PostgreSQL 中跨数据库连接查询。                                    |
| [dict_int](http://www.postgresql.org/docs/12/dict-int.html)                                   | 全文搜索字典，支持整数类型的搜索优化。                                          |
| [dict_xsyn](https://www.postgresql.org/docs/12/dict-xsyn.html)                                | 同义词词典扩展，支持全文搜索中的同义词替换。                                       |
| [fuzzystrmatch](http://www.postgresql.org/docs/12/fuzzystrmatch.html)                         | 提供模糊字符串匹配功能（如 Levenshtein 距离、Soundex 等）。                     |
| hll                                                                                           | 高性能 HyperLogLog 算法，用于大数据基数估算。                                |
| [insert_username (contrib-spi)](https://www.postgresql.org/docs/13/contrib-spi.html)          | 自动记录插入数据的用户名。                                                |
| [intagg](http://www.postgresql.org/docs/12/intagg.html)                                       | 提供整数聚合和枚举功能。                                                 |
| [intarray](http://www.postgresql.org/docs/12/intarray.html)                                   | 提供高效的整数数组操作函数。                                               |
| [ip4r](https://github.com/RhodiumToad/ip4r)                                                   | 支持 IPv4 和 IPv6 地址的高效存储和查询。                                   |
| [isn](http://www.postgresql.org/docs/12/isn.html)                                             | 提供国际标准编号（如 ISBN、ISSN 等）的数据类型和校验。                             |
| jsonb_plperl                                                                                  | 允许在 PL/Perl 中处理 JSONB 数据。                                    |
| [lo](https://www.postgresql.org/docs/current/lo.html)                                         | 管理大对象（Large Object）存储，如二进制文件。                                |
| [moddatetime (contrib-spi)](https://www.postgresql.org/docs/13/contrib-spi.html)              | 自动记录表的最后修改时间。                                                |
| [mysql_fdw](https://github.com/EnterpriseDB/mysql_fdw)                                        | 允许 PostgreSQL 查询 MySQL 数据库（Foreign Data Wrapper）。            |
| [orafce](https://github.com/orafce/orafce)                                                    | 提供 Oracle 兼容函数，便于迁移 Oracle 数据库。                              |
| [pg_buffercache](http://www.postgresql.org/docs/12/pgbuffercache.html)                        | 监控 PostgreSQL 共享缓冲区的使用情况。                                    |
| pg_bigm                                                                                       | 提供高效的 2-gram（二元分词）全文搜索功能，支持非拉丁语系（如中文、日文）的模糊匹配和快速检索。          |
| pg_cron                                                                                       | 在 PostgreSQL 内部执行定时任务（类似 crontab）。                           |
| [pg_freespacemap](https://www.postgresql.org/docs/12/pgfreespacemap.html)                     | 检查表的空闲空间映射（Free Space Map）。                                  |
| [pg_hint_plan](https://github.com/ossc-db/pg_hint_plan/)                                      | 允许手动指定查询执行计划，优化复杂 SQL 查询。                                    |
| pg_partman                                                                                    | 自动分区管理，支持按时间/范围分区。                                           |
| [pg_prewarm](https://www.postgresql.org/docs/12/pgprewarm.html)                               | 预加载表或索引到共享缓冲区，提高查询性能。                                        |
| [pg_repack](http://reorg.github.io/pg_repack/)                                                | 在线重组表，减少膨胀，无需长时间锁定。                                          |
| [pg_stat_statements](http://www.postgresql.org/docs/12/pgstatstatements.html)                 | 记录 SQL 执行统计，用于性能分析。                                          |
| [pg_trgm](http://www.postgresql.org/docs/12/pgtrgm.html)                                      | 提供基于三元组的模糊文本搜索和相似度计算。                                        |
| [pg_visibility](https://www.postgresql.org/docs/12/pgvisibility.html)                         | 检查表的可见性映射（Visibility Map），用于优化 VACUUM。                       |
| [pgAudit](https://github.com/pgaudit/pgaudit/blob/master/README.md)                           | 提供详细的数据库审计日志，记录 SQL 操作。                                      |
| [pgrouting](http://docs.pgrouting.org/2.3/en/doc/index.html)                                  | 地理空间路由计算，支持最短路径、网络分析等。                                       |
| [pgrowlocks](http://www.postgresql.org/docs/12/pgrowlocks.html)                               | 监控行级锁定情况，排查锁冲突。                                              |
| [pgstattuple](http://www.postgresql.org/docs/12/pgstattuple.html)                             | 统计表和索引的物理存储情况，帮助优化空间使用。                                      |
| [plpgsql](https://www.postgresql.org/docs/12/plpgsql.html)                                    | PostgreSQL 默认的过程语言（PL/pgSQL）。                                |
| [PostGIS](https://postgis.net/)                                                               | 地理信息系统（GIS）扩展，支持空间数据存储和查询。                                   |
| postgis_raster                                                                                | PostGIS 的栅格数据处理扩展。                                           |
| [postgis_topology](http://postgis.net/docs/manual-dev/Topology.html)                          | PostGIS 的拓扑数据处理扩展。                                           |
| postgis_sfcgal                                                                                | 为 PostGIS 提供了基于 SFCGAL 库的 3D 几何操作和高级空间分析功能。                  |
| [postgres_fdw](http://www.postgresql.org/docs/13/postgres-fdw.html)                           | 允许 PostgreSQL 查询其他 PostgreSQL 数据库（Foreign Data Wrapper）。     |
| [SEG](https://www.postgresql.org/docs/current/seg.html)                                       | 提供线段（segment）数据类型，用于区间计算。                                    |
| [sslinfo](http://www.postgresql.org/docs/12/sslinfo.html)                                     | 提供 SSL 连接信息，如客户端证书详情。                                        |
| [tablefunc](http://www.postgresql.org/docs/12/tablefunc.html)                                 | 提供表函数（如 crosstab 交叉表分析）。                                     |
| [TCN](https://www.postgresql.org/docs/current/tcn.html)                                       | 触发器变更通知，用于监听数据变更事件。                                          |
| tds_fdw                                                                                       | 允许 PostgreSQL 查询 SQL Server 数据库。                             |
| [tsm_system_rows](https://www.postgresql.org/docs/12/tsm-system-rows.html)                    | 提供基于行数的表采样方法，用于随机抽取指定行数的数据（如 TABLESAMPLE SYSTEM_ROWS(100)）。  |
| [tsm_system_time](https://www.postgresql.org/docs/12/tsm-system-time.html)                    | 提供基于时间的表采样方法，在指定时间内随机抽取数据（如 TABLESAMPLE SYSTEM_TIME(1000)）。  |
| [unaccent](http://www.postgresql.org/docs/12/unaccent.html)                                   | 移除文本中的变音符号（如 é → e），便于模糊搜索和标准化文本处理。                          |
| [uuid-ossp](http://www.postgresql.org/docs/12/uuid-ossp.html)                                 | 生成符合标准的 UUID（通用唯一标识符），支持多种算法（如 v1、v3、v4、v5）。                 |
| pg_sql_history                                                                                | 记录用户执行的 SQL 语句历史，便于审计和问题排查（需配合日志配置）。                         |
| rds_pg_sql_ccl                                                                                | 控制并发 SQL 查询的执行，防止资源过载（如限制并发连接数）。                             |
| rds_hwdrs_ddl                                                                                 | 通过事件触发器自动记录并管理PostgreSQL数据库的DDL操作历史，包括表/视图/索引等对象的创建、修改和删除语句。 |
| rds_operate_privs                                                                             | 提供权限安全管控能力。                                                  |
| pg_roaringbitmap                                                                              | 高效压缩位图计算库，适用于大数据集的快速交集、并集运算（如用户画像分析）。                        |
| pg_stat_monitor                                                                               | 增强版 SQL 监控工具，提供更细粒度的查询统计（如执行计划、错误跟踪）。                        |
| passwordcheck                                                                                 | 强制密码复杂度检查（如长度、大小写、特殊字符），提升数据库安全性。                            |
| pg_qualstats                                                                                  | 收集 SQL 查询中 WHERE 子句的谓词统计，帮助优化索引设计。                           |
| [pgl_ddl_deploy](https://github.com/enova/pgl_ddl_deploy)                                     | 自动化 DDL 变更部署，支持多节点同步（如主从架构下的表结构同步）。                          |
| test_decoding                                                                                 | 逻辑解码插件，用于解析 WAL 日志。                                          |
| auth_delay                                                                                    | 故意延迟认证失败响应（防暴力破解），可配置延迟时间（单位：毫秒）。                            |
| pageinspect                                                                                   | 检查数据页的底层存储结构（如 Heap/Index 页），用于高级调试和故障修复。                    |
| pg_surgery                                                                                    | 修复损坏的表数据（如绕过约束强制修改数据）。                                       |
| rum                                                                                           | 高级全文搜索索引，支持短语搜索、邻近排序和加权查询。                                   |
| [xml2](https://www.postgresql.org/docs/14/xml2.html)                                          | 提供 XML 解析和操作函数（如 XPath 查询、XML 生成），支持 XML 数据类型处理。             |
   
