docs/deploy/third-party-extensions.mdx
Postgres has a rich ecosystem of extensions. ParadeDB is designed to work alongside other PostgreSQL extensions for a complete data platform.
To keep the ParadeDB Docker image size manageable, the following extensions are pre-installed:
pg_search — Full-text and hybrid search with BM25pgvector — Vector similarity searchpostgis — Geospatial queries and indexingpg_ivm — Incremental materialized viewspg_cron — Scheduled jobs and background tasksParadeDB has been tested with and supports the following popular extensions:
pg_partman — Automated partition managementpg_stat_statements — Query performance monitoringpostgres_fdw — Foreign data wrappers for federated queriesThe process for installing an extension varies by extension. Generally speaking, it requires:
shared_preload_libraries in postgresql.conf, if required by the extensionCREATE EXTENSION <extension name>We recommend installing third party extensions from prebuilt binaries to keep the image size small. As an example, let's install pg_partman, an extension for managing table partition sets.
First, enter a shell with root permissions in the ParadeDB image.
docker exec -it --user root paradedb bash
Next, install the prebuilt binaries.
Most popular Postgres extensions can be installed with apt-get install.
apt-get update
apt-get install -y --no-install-recommends postgresql-17-partman
shared_preload_librariesIf you are installing an extension which requires this step, you can do so
via the following command, replacing <extension_name> with your extension's name:
sed -i "/^shared_preload_libraries/s/'\([^']*\)'/'\1,<extension_name>'/" /var/lib/postgresql/data/postgresql.conf
For pg_partman, the command is:
sed -i "/^shared_preload_libraries/s/'\([^']*\)'/'\1,pg_partman_bgw'/" /var/lib/postgresql/data/postgresql.conf
Postgres must be restarted afterwards. We recommend simply restarting the Docker container.
Connect to ParadeDB via psql and create the extension.
CREATE EXTENSION pg_partman;
pg_partman is now ready to use!
Note that this is a simple example of installing pg_partman. The full list of settings and optional dependencies can be found in the official installation instructions.