Files
InternalAuditInterprise/infra/postgres/init/01-extensions.sql
T
2026-06-16 00:38:57 +08:00

15 lines
626 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 初始化 AIAudit 数据中台所需的 PostgreSQL 扩展
-- 容器首次启动时由官方 entrypoint 自动执行(/docker-entrypoint-initdb.d
-- 时序(TimescaleDB):支撑时间序列建模
CREATE EXTENSION IF NOT EXISTS timescaledb;
-- 向量检索(pgvector):支撑语义检索
CREATE EXTENSION IF NOT EXISTS vector;
-- btree_gist:支撑双时态有效期的排他约束(防止时间区间重叠)
CREATE EXTENSION IF NOT EXISTS btree_gist;
-- 注:MVP 阶段知识图谱采用关系表(实体/关系边)+ 递归 CTE 建模,
-- 不依赖 Apache AGE 扩展。后续按需再引入。