ERROR: could not open extension control file “/usr/share/postgresql/14/extension/vector.control”: No such file or directory
进入容器
docker exec -it CONTAINER ID /bin/bash
1.更新 apt-get
apt-get update
2.安装插件
#不同版本对应修改数字即可
apt-get install postgresql-14-pgvector
– 再次尝试添加 vector 扩展,成功
CREATE EXTENSION vector;