Overview
ParadeDB ships its functionality packaged as a Postgres extension,pg_search. To upgrade, first install the new extension binary, then update the extension in the Postgres catalog.
ParadeDB uses
pgvector’s vector types for native vector
search. This extension is not managed by
ParadeDB. Please refer to the pgvector
documentation
for instructions on how to upgrade it.Getting the Current Version
To inspect the current version of the extension, run the following command.paradedb.version_info():
paradedb.version_info() is the actual version of the pg_search binary that is installed,
whereas pg_extension is what Postgres’ catalog thinks the version of the extension is.
If paradedb.version_info() is greater than pg_extension, it means that ALTER EXTENSION was not run after the previous upgrade, and that the SQL upgrade scripts were not applied.
If pg_extension is greater than paradedb.version_info(), it means that the extension didn’t fully upgrade, and that Postgres needs to be restarted.
Getting the Latest Version
The latest version ofpg_search is 0.26.0. The list of available pg_search versions can be found on our GitHub releases page.
Upgrading the ParadeDB Binary
- Kubernetes
- Docker
- Self-Hosted PostgreSQL
To upgrade Replace
pg_search in a cluster deployed with the ParadeDB Helm chart:- Refresh the local chart repository index.
- List the available chart versions.
-
Choose a chart version and a ParadeDB extension version. The chart version
and extension version are separate:
--versionselects the Helm chart, whileversion.paradedbselects the ParadeDB version deployed by that chart. - Upgrade the existing Helm release, preserving its configured values and setting the new ParadeDB version.
<chart_version> and <paradedb_version> with your chosen versions.
Use your existing release name and namespace if they differ from paradedb.Upgrading the PostgreSQL Catalog
After the ParadeDB binary has been upgraded, connect to it and run the following command in all databases thatpg_search is installed in. This step is required regardless of the environment that ParadeDB is installed in.