Skip to content
Menu

DocsFeatures

View as Markdown

Extensions

The PostgreSQL extensions you can create yourself, the catalog extensions KeelDB enables for you (pgvector, PostGIS, pg_cron, TimescaleDB), and what each needs.

Your database's owner role (<database>_owner) is not a superuser. It can create any extension PostgreSQL marks as trusted with a plain CREATE EXTENSION. Other extensions need more rights, so KeelDB enables them for you from its catalog.

List what is available and what is installed:

-- Everything the server can install
SELECT name, default_version, installed_version FROM pg_available_extensions ORDER BY name;

-- What this database has installed
SELECT extname, extversion FROM pg_extension ORDER BY extname;

Installed in every database

ExtensionWhat it does
pg_stat_statementsQuery statistics. Powers Query insights
plpgsqlPostgreSQL's procedural language

KeelDB also loads pg_prewarm on every database, so caches refill after a wake, a restart or a failover.

Extensions you can create yourself

These are trusted, so your owner role creates them directly, on PostgreSQL 18, 17 and 16:

CREATE EXTENSION IF NOT EXISTS pg_trgm;
ExtensionWhat it does
btree_gin, btree_gistB-tree behavior for GIN and GiST indexes, for example in exclusion constraints
citextCase-insensitive text
cubeMulti-dimensional cubes
dict_intText search dictionary for integers
fuzzystrmatchLevenshtein distance, Soundex and Metaphone
hstoreKey and value pairs in one column
intarrayFunctions and indexes for integer arrays
isnISBN, ISSN and other product number types
loLarge object maintenance
ltreeTree paths such as top.science.astronomy
pg_trgmTrigram similarity and fast LIKE and ILIKE searches
pgcryptoHashing and encryption functions
segLine segments and floating point intervals
tablefunccrosstab and other table functions
tcnNotifications when table contents change
tsm_system_rows, tsm_system_timeTable sampling methods
unaccentText search dictionary that removes accents
uuid-osspUUID generators. On PostgreSQL 13 and newer, gen_random_uuid() needs no extension

Catalog extensions

These need rights your role does not have, or a setting loaded when PostgreSQL starts, so KeelDB installs them for you. Turn them on from the database's Settings in the console, or with the API.

ExtensionWhat it doesPostgreSQLRestart when turned on
vector (pgvector)Vector similarity search for embeddings, with HNSW and IVFFlat indexes18, 17 and 16No
postgisGeographic objects, spatial indexes and functions18No
postgis_topology, postgis_raster, address_standardizerTopology models, raster data and postal address parsing, on top of PostGIS (the first two turn PostGIS on with them)18No
pg_cronRun SQL on a schedule inside the database. Jobs run as the role that scheduled them, at most 4 at a time18Yes, once
timescaledb (Apache 2 edition)Time-series tables (hypertables) and time functions. The Apache 2 edition leaves out TimescaleDB's community-licensed features, such as compression and continuous aggregates18Yes, once
postgres_fdwQuery tables in other PostgreSQL databases as if they were local. Your owner role gets usage of the wrapper. Launch and Dedicated only18, 17 and 16No
dblinkRun queries on other PostgreSQL databases from within a query. Launch and Dedicated only18, 17 and 16No
bloomBloom filter indexes for equality queries over many columns18, 17 and 16No
earthdistanceGreat-circle distances on the Earth's surface, without PostGIS (turns cube on with it)18, 17 and 16No
moddatetimeTrigger function that keeps an updated_at column current18, 17 and 16No
  • PostGIS, pg_cron and TimescaleDB come as separate extension images that KeelDB mounts into your database. PostgreSQL loads extensions from such images only from version 18, so these three need PostgreSQL 18, the default for new databases.
  • pg_cron and timescaledb must be loaded when PostgreSQL starts, so turning one on restarts the database once. The console tells you before you confirm. On HA databases KeelDB switches over to a standby first, so writes pause only briefly.
  • postgres_fdw and dblink let the database open connections to other servers and send them data, which does not pass through KeelDB's proxies where the Free egress limit is counted, so they are available on Launch and Dedicated only.
  • Once a catalog extension is installed, you use it like any other: create tables, indexes and functions with your owner role.
  • Turning one off drops it from the database. KeelDB refuses while tables, columns, indexes or functions still use it, or while another enabled extension needs it.
  • Branches and restored databases keep the extensions of their parent.

Not available

  • Extensions that need a superuser at run time, read or write server files, or run untrusted languages, such as file_fdw, pageinspect, plpython3u or plperlu.
  • Extensions that are not in the image or the catalog. If you need one, tell us from the console: we add extensions to the catalog when we can run them safely for every customer.

When you migrate from another provider, list the source's extensions first and check them against this page.