Bug description
Setup of Spring AI with PG Vector store fails. It cannot find the file vector.control even if it exists.
The problem seems to be that it is looking for a Postgres 14 installation, although PG Vector store is for Postgres 15 or 16.
The error message is:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vectorStore' defined in class path resource [org/springframework/ai/autoconfigure/vectorstore/pgvector/PgVectorStoreAutoConfiguration.class]: StatementCallback; SQL [CREATE EXTENSION IF NOT EXISTS vector]; ERROR: could not open extension control file "/usr/share/postgresql/14/extension/vector.control"
I linked from postgres/14 to postgres/16, so that the path exists.
I ensured the file is read/writable.
Yet, the error message remains.
Expected behavior
The application shall be able to find the correct vector.control file of the Posgres 15 or 16 version instead of looking for Postgres 14.
Minimal Complete Reproducible example
The error occurs with the start.spring.io package setup, link with parameters is provided in the section "Steps to reproduce".
Bug description Setup of Spring AI with PG Vector store fails. It cannot find the file vector.control even if it exists. The problem seems to be that it is looking for a Postgres 14 installation, although PG Vector store is for Postgres 15 or 16. The error message is:
I linked from postgres/14 to postgres/16, so that the path exists. I ensured the file is read/writable. Yet, the error message remains.
Environment
Steps to reproduce
Expected behavior The application shall be able to find the correct vector.control file of the Posgres 15 or 16 version instead of looking for Postgres 14.
Minimal Complete Reproducible example The error occurs with the start.spring.io package setup, link with parameters is provided in the section "Steps to reproduce".