pgvector / pgvector

Open-source vector similarity search for Postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vector extension creation in docker image

humcqc opened this issue · comments

Hello,

Do you think it could be a good idea to have in the docker image a SQL script that initialize automatically the pg vector ?
'''CREATE EXTENSION IF NOT EXISTS vector'''

Thanks

Hi @humcqc, thanks for the suggestion. The Postgres Docker image supports initialization scripts, so we could configure it to run CREATE EXTENSION vector; in $POSTGRES_DB (to make it available in future databases, it'd also need to update template1). However, I think it's better to keep things consistent across installations (and not create the extension automatically), but may revisit in the future.