PostgreSQL ERROR: extension "pgvector" / "postgis" is not available

OS package for the extension is not installed for the active PostgreSQL major version.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: PostgreSQL ERROR Platform: PostgreSQL
Common Root Causes:
  • OS package for the extension is not installed for the active PostgreSQL major version.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Install `postgresql-<ver>-pgvector` / `postgis` from PGDG apt repo before `CREATE EXTENSION`.
Safe Diagnostic Command:
SELECT * FROM pg_available_extensions ORDER BY name;
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

OS package for the extension is not installed for the active PostgreSQL major version. Recommended diagnostic: `SELECT * FROM pg_available_extensions ORDER BY name;`. Remediation: Install `postgresql-<ver>-pgvector` / `postgis` from PGDG apt repo before `CREATE EXTENSION`.

Worked Examples

  • Run `SELECT * FROM pg_available_extensions ORDER BY name;` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-pg-extension-not-available · Independently verified: 2026-11-25

Related Resources