From 463295da3cf91b572109c5211096a0ab50be53a0 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Thu, 7 Dec 2023 11:10:58 +0100 Subject: [PATCH] docs: shared_preload_libraries cluster spec in README --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26633aa..c83b336 100644 --- a/README.md +++ b/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"'` \ No newline at end of file +> 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" +> ``` \ No newline at end of file