User Guide · PostgreSQL · Extensions

PostgreSQL extensions

The cluster's Extensions tab (PostgreSQL only) installs, updates and removes extensions on every node of the cluster, including replicas — so an extension created on the primary also exists on a replica that is later promoted. For each extension it shows the installed version per database, whether the package is available on all nodes, whether it is preloaded and whether an update is available.

The catalog

pg_stat_statements

Built in. Query statistics; needs preload (already enabled on Jarwis-installed clusters).

pgvector

Vector similarity search (vector columns, HNSW/IVFFlat indexes).

PostGIS

Spatial types and functions.

TimescaleDB

Time-series tables. Uses its own apt repository; needs preload and a restart.

pg_cron

Job scheduler inside PostgreSQL. Needs preload and a restart; lives in a single database.

Other extensions already present on the cluster are listed separately as read-only entries.

Install

Choose the extension and the databases (or all databases). Jarwis installs the OS package matching the cluster's PostgreSQL major on every node and then runs CREATE EXTENSION in each database. Extensions that must be preloaded are added to shared_preload_libraries; on Patroni clusters this is written to the cluster configuration and the members are restarted one by one — replicas first, the leader last. A restart needs approval.

Preview first

Every action can be run as a dry run: Jarwis shows the plan — packages, nodes, steps, whether a restart is needed, which approvals it will require and any dependents — without starting a task.

Update and remove

  • Update runs ALTER EXTENSION … UPDATE to the newest installed package version (a preloaded extension may need a rolling restart).
  • Remove drops the extension from the selected databases. If objects depend on it — for example a vector column and its index — Jarwis refuses and lists them. Repeating with cascade drops those objects too and requires approval.
  • Purge additionally removes the library from the preload list and uninstalls the OS package from all nodes (approval, because it restarts the cluster). It is refused while the extension is still installed in another database.
Cascade is destructive It drops columns and indexes that use the extension. Look at the dependents list first and make sure you have a recent backup.

If a node cannot be reached the tab marks it, and only one extension task runs per cluster at a time. Container clusters are not supported.