Skip to content

Commit

Permalink
update doc to include new search path
Browse files Browse the repository at this point in the history
  • Loading branch information
BonzTM committed Feb 22, 2024
1 parent 012e6c2 commit 77a06ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This repository contains container images for [CrunchyData PGO](https://github.c

> :warning: **If you are deploying this image on an existing database:** The postgres configuration must be updated to enable the pgvecto.rs extension.
To enable the extension, you need to set the `shared_preload_libraries` in your Cluster spec. Add the following configuration to your `PostgresCluster` yaml file:
To enable the extension, you need to set the `shared_preload_libraries` and `search_path` in your Cluster spec. Add the following configuration to your `PostgresCluster` yaml file:

```yaml
apiVersion: postgres-operator.crunchydata.com/v1beta1
Expand All @@ -19,6 +19,7 @@ spec:
synchronous_commit: "on"
parameters:
shared_preload_libraries: "vectors.so"
search_path: '"$user", public, vectors'
```
> :warning: If you want to do a major Postgres version upgrade like described in the [official docs](https://access.crunchydata.com/documentation/postgres-operator/latest/guides/major-postgres-version-upgrade), make sure you do the following steps or the upgrade will fail:
Expand Down

0 comments on commit 77a06ad

Please sign in to comment.