docs: shared_preload_libraries cluster spec in README

This commit is contained in:
bo0tzz
2023-12-07 11:10:58 +01:00
committed by GitHub
parent bbcde6b153
commit 463295da3c

View File

@@ -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"
> ```