Skip to content

Ask AI

Powered by Blaze

Answers come from E2E Cloud documentation. AI can make mistakes.

Add extensions

View as Markdown

Extensions add features to PostgreSQL, such as vector similarity search with pgvector. Choose them when you create a database, and add more later from Edit. The database keeps running while you add any of the extensions on offer. You add them to an existing database while it is Running.

Extension What it adds
pg_stat_statements Statistics on how queries run
vector pgvector, vector similarity search for embeddings
pg_trgm Trigram matching for fuzzy text search
uuid-ossp Functions that generate UUIDs
pgcrypto Cryptographic functions
hstore Key and value pairs in a single column
citext A case-insensitive text type
btree_gin GIN index support for common types
btree_gist GiST index support for common types
ltree A data type for hierarchical, tree-like data
unaccent A text search dictionary that removes accents

pg_stat_statements is installed on every database, whatever you choose.

Choose extensions when you create a database

Section titled “Choose extensions when you create a database”

On the Create Database page, open Advanced Settings and use Extensions. pg_stat_statements and vector are already chosen. To add another, choose it in Select extensions; Search extensions finds one by name.

The extensions you choose are installed in defaultdb, the database that the connection details point to, when the database is created. For the rest of the create page, see Create a database.

  1. Choose Edit from the database’s menu, in the list or on its page. While the database is Running, Extensions under Configuration on the Overview tab also has an Edit link.
  2. Open Advanced Settings. In Extensions, choose the ones you want to add. Those already on the database are marked “(installed)”.
  3. Select Update Database.

TIR adds them while the database keeps running, and Activity Timeline records “Extensions added” with the names of the new extensions.

Edit Database only adds extensions, so an extension you add stays on the database.

While the database is Running, Extensions under Configuration on its Overview tab names the installed extensions. The list leaves out the built-in plpgsql.

If an extension fails to install, Edit Database names it and says that its install failed. For what to do, see An extension could not be installed.

To tune PostgreSQL settings as well, see Use parameter groups. To connect and start using an extension, see Connect to a database.

Was this page helpful?