跳到正文

pgvector 兼容性

主流向量相似度检索扩展,支持 HNSW / IVFFlat 索引与 halfvec / sparsevec / bit 量化。

CREATE EXTENSION vector;

版本证据核验日期

按条件筛选向量检索结果时,可用迭代索引扫描继续查找匹配项。此功能从 pgvector 0.8.0 起提供,表中的 0.7.x 版本不包含此功能。 上游版本说明 · 查 pgvector 安全公告

云产品PG 版本扩展版本限制与文档
Cloud SQLPG 18扩展 0.8.5
支持迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 17扩展 0.8.5
支持迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 16扩展 0.8.5
支持迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 15扩展 0.8.5
支持迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 14扩展 0.8.5
支持迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 13扩展 0.8.5
支持迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 12扩展 ≤ 0.7.4
无迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
Cloud SQLPG 11扩展 ≤ 0.5.1
无迭代索引扫描
PostgreSQL versions 13 and later support version 0.8.5, PostgreSQL version 12 supports up to version 0.7.4, and PostgreSQL version 11 supports up to version 0.5.1. 文档
NeonPG 19扩展 0.8.7
支持迭代索引扫描
Install with CREATE EXTENSION vector; 文档
NeonPG 18扩展 0.8.7
支持迭代索引扫描
Install with CREATE EXTENSION vector; 文档
NeonPG 17扩展 0.8.7
支持迭代索引扫描
Install with CREATE EXTENSION vector; 文档
NeonPG 16扩展 0.8.7
支持迭代索引扫描
Install with CREATE EXTENSION vector; 文档
NeonPG 15扩展 0.8.7
支持迭代索引扫描
Install with CREATE EXTENSION vector; 文档
NeonPG 14扩展 0.8.7
支持迭代索引扫描
Install with CREATE EXTENSION vector; 文档
Cloud SQLPG 13–18扩展 0.8.5
支持迭代索引扫描
文档列出的版本。先在实例核对可用版本。 文档
AWS RDSPG 按引擎次版本 / By engine minor扩展 见官方矩阵 / See matrix
迭代索引扫描需核对
升级引擎时扩展不会自动随之升级。 文档
查看各平台支持情况
查询实例上的版本
SELECT version();
SELECT version, installed FROM pg_available_extension_versions
WHERE name = 'vector';
全部扩展兼容矩阵