Skip to content

Commit

Permalink
Merge pull request #3 from tensorchord/readme
Browse files Browse the repository at this point in the history
change README
  • Loading branch information
xieydd authored Nov 22, 2024
2 parents 36a29a7 + 9d533e3 commit a64d7c4
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
# cloudnative-vectorchord
# cloudnative-vectorchord

Container images for [cloudnative-pg](https://cloudnative-pg.io/) with the [VectorChord](https://github.com/tensorchord/VectorChord) extension installed.


> [!IMPORTANT]
> If you are using this image on an existing database, the postgres configuration needs to be
> altered to enable the extension. You can do this by setting shared_preload_libraries in your Cluster spec:
> ```yaml
> apiVersion: postgresql.cnpg.io/v1
> kind: Cluster
> spec:
> (...)
> postgresql:
> shared_preload_libraries:
> - "vchord.so"
> ```
> [!IMPORTANT]
> The `VectorChord` extension is not enabled by default. You need to enable it and set the search path when initializing the database. You can configure it in your Cluster spec:
> ```yaml
> apiVersion: postgresql.cnpg.io/v1
> kind: Cluster
> spec:
> (...)
> bootstrap:
> initdb:
> postInitSQL:
> - CREATE EXTENSION IF NOT EXISTS vchord CASCADE;
## Building
To build the Dockerfile locally, you need to pass the `CNPG_TAG` and `VECTORCHORD_TAG` args. For example:
`docker build . --build-arg="CNPG_TAG=16.3" --build-arg="VECTORCHORD_TAG_TAG=0.1.0"`

0 comments on commit a64d7c4

Please sign in to comment.