mirror of
https://github.com/YuzuZensai/cloudnative-vectorchord-pgvecto.rs.git
synced 2026-01-30 20:32:42 +00:00
docs: shared_preload_libraries cluster spec in README
This commit is contained in:
12
README.md
12
README.md
@@ -4,5 +4,13 @@ Container images for CNPG with the pgvecto.rs 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 running:
|
||||
> `psql -U postgres -c 'ALTER SYSTEM SET shared_preload_libraries = "vectors.so"'`
|
||||
> 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:
|
||||
> - "vectors.so"
|
||||
> ```
|
||||
Reference in New Issue
Block a user