Skip to main content
Managed Service for PostgreSQL clusters are created with pre-installed PostgreSQL extensions. You can enable any of these extensions for your databases, but you cannot install any other extensions. See the full list of available extensions below, or you can request the list.

How to enable an extension for a database

To enable an extension for a database, execute the CREATE EXTENSION statement:
This command does not affect other databases in the cluster. To use an extension in other databases, execute CREATE EXTENSION in each one as needed.

Example: pgvector extension

To get started with the pgvector open-source extension, which provides vector operations, follow these steps:
  1. Add the extension:
  2. Create a table with a vector column:
  3. Insert some vectors into the new table:
  4. Get the contents of the table sorted by how close each value is to a given vector (that is, sorted by Euclidean distance):

How to request the list of installed extensions

To get the list of extensions available on your cluster, execute the following statement:
To look for a particular extension, execute the following statement:

Available extensions

How to run pg_repack

Managed Service for PostgreSQL clusters do not provide superuser access. Therefore, run the pg_repack extension only on the tables that you own and include the --no-superuser-check parameter. For example:
In this command, specify the same parameters that you use for connecting to the cluster. Ensure that <username> owns <table_name>.
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.