Extensions
Each project’s Postgres can use a fixed allowlist of extensions. You turn them on without superuser rights, from the dashboard (Database → Extensions) or the Management API:
curl -s -H "Authorization: Bearer $PAT" $BASE_API/v1/projects/shop/extensions # name, installed, available, versioncurl -s -X POST -H "Authorization: Bearer $PAT" -H 'content-type: application/json' \ -d '{"name":"pg_trgm","enabled":true}' $BASE_API/v1/projects/shop/extensionsListing needs the database:read scope and turning one on or off database:write (developer role). Errors: 400 extension_not_allowed (not on the list), 422 extension_not_available (not installed in this deployment), 409 extension_in_use (something depends on it when you turn it off). Turning an extension off never cascades.
Allowlist
Section titled “Allowlist”The image is PostgreSQL 17. Contrib extensions ship with the server and follow its minor version. Others come from the PGDG packages for PostgreSQL 17 (the current release when the image is built) or, where noted, a pinned release. The exact installed version of each is the version field of the list endpoint.
| Extension | What for | Source and version |
|---|---|---|
pgcrypto |
hashing, random bytes | contrib (PG 17) |
uuid-ossp |
UUID v1/v3/v4/v5 | contrib (PG 17) |
pg_uuidv7 |
time-ordered UUID v7 | PGDG package |
pg_trgm |
trigram similarity, fuzzy search | contrib (PG 17) |
unaccent |
accent-insensitive search | contrib (PG 17) |
fuzzystrmatch |
Soundex, Levenshtein | contrib (PG 17) |
citext |
case-insensitive text | contrib (PG 17) |
pg_textsearch |
BM25 ranking | PGDG package |
vector |
pgvector embeddings | PGDG package |
hstore, ltree, intarray, cube, earthdistance, tablefunc |
data types and helpers | contrib (PG 17) |
btree_gist, btree_gin |
extra index operator classes | contrib (PG 17) |
pg_jsonschema |
JSON Schema validation | pinned release 0.3.4 |
rum |
RUM index: ranked and phrase full-text search | PGDG package |
pgaudit |
session audit log (needs a restart on self-host, see guide) | PGDG package |
moddatetime |
trigger that stamps updated_at |
contrib (PG 17) |
isn, seg, dict_int, tsm_system_rows, tsm_system_time |
product-number types, intervals, integer dictionary, table sampling | contrib (PG 17) |
hypopg |
hypothetical indexes | PGDG package |
pg_partman |
partition management (schema partman) |
PGDG package |
pgmq |
message queues (schema pgmq, see Scheduled jobs and queues) |
pinned release 1.13.0 |
postgis |
geospatial (PostGIS 3) | PGDG package, only in the PostGIS image variant; check available in the list |
pg_stat_statements and pg_cron are managed by the platform (jobs are created through the cron API, not as an extension you enable). Extensions that can reach the network or run untrusted code (http, dblink, foreign data wrappers, plpython, plperlu) are not offered. Also left out: pg_search (ParadeDB, AGPL; pg_textsearch covers BM25), pg_hashids (no maintained package), pg_repack, pageinspect, pg_buffercache and pgstattuple (superuser-only or expose internals).
Extensions with their own schema
Section titled “Extensions with their own schema”pg_partman and pgmq keep their objects in their own schema, and only service_role can use that schema. The anon and authenticated roles cannot call them directly: wrap what you need in a SECURITY DEFINER function in public that checks auth.uid(), then grant execute to the role. A worked example is in Scheduled jobs and queues.
pgAudit
Section titled “pgAudit”After you enable pgaudit, choose the pgaudit.log classes in Database > Extensions (or PUT /v1/projects/{ref}/extensions/pgaudit with { "log": ["write", "ddl"] }). The change applies to new connections. Disabling the extension resets the setting to none.
pg_net and supabase_vault (Supabase-compatible)
Section titled “pg_net and supabase_vault (Supabase-compatible)”Enable pg_net for net.http_get / http_post / http_delete: the API matches Supabase, but requests are queued in the transactional outbox (sent after commit, SSRF-guarded, retried) and there is no net._http_response table. Enable supabase_vault for vault.create_secret, vault.update_secret and vault.decrypted_secrets (pgcrypto, master key from a file on the database host). Both are callable by service_role and the project owner only.
pg_cron_compat (cron.schedule from SQL)
Section titled “pg_cron_compat (cron.schedule from SQL)”Project databases have no real pg_cron. Enable pg_cron_compat to get the Supabase SQL surface: cron.schedule(name, schedule, command), cron.schedule(schedule, command), cron.unschedule(name | id), cron.alter_job(...) and the table cron.job. Jobs are stored in cron.job of your project database and synced within seconds to the platform scheduler (see synced_at / sync_error; the job count and minimum interval follow the same limits as the cron API). Differences from pg_cron: jobs run as service_role (not the owner; SET ROLE in a command is refused), there is no cron.job_run_details (use the runs endpoint of the cron API), and jobs created through the cron API do not appear in cron.job. Only service_role and the project owner can call cron.*.
potalab migrate supabase enables pg_net, supabase_vault, pg_trgm, unaccent and pg_cron_compat when the schema or the cron jobs use them, before applying the schema, and recreates the source cron.job rows with cron.schedule(...).