---
title: "The Extension Model"
description: "How extensions work on Managed PostgreSQL without superuser rights: the allow list, trusted extensions, and the restricted ones."
url: https://community.exoscale.com/product/dbaas/service-specific/postgresql/overview/extensions/
product: "PostgreSQL"
section: product
last_updated: 2026-11-10
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# The Extension Model

This page explains how PostgreSQL extensions work on Managed PostgreSQL, where the administrative user is not a superuser: what decides whether `avnadmin` can create an extension, and why some extensions install but cannot be used.

## Why Extensions Work Differently Here

In a self-managed PostgreSQL, a superuser creates extensions. On Managed PostgreSQL, `avnadmin`
is not a superuser, see
[Limits and Quotas](https://community.exoscale.com/product/dbaas/service-specific/postgresql/service-boundaries/limits-and-quotas/index.md).
Two mechanisms let it create extensions anyway:

- **Trusted extensions.** PostgreSQL lets the owner of a database create an extension marked
  trusted, such as `pgcrypto`, `hstore` or `anon`. These are owned by `avnadmin`.
- **The platform allow list.** For extensions that normally need a superuser, such as `postgis`,
  `vector` or `timescaledb`, the platform runs the creation on your behalf when the name is on
  its allow list, the `extwlist.extensions` parameter. These extensions are owned by `postgres`.
  `avnadmin` can still update and drop them.

Read the allow list on your service:

```sql
SHOW extwlist.extensions;
```

Neither mechanism alone tells you the full answer. `file_fdw` is on the allow list, yet
`CREATE EXTENSION file_fdw` fails with `ERROR: file_fdw extension not allowed`: the platform
does not give access to the node's file system. The test that counts is `CREATE EXTENSION` on
your own service.

## What You Can Create

On PostgreSQL 18, `pg_available_extensions` lists 75 extensions, and `avnadmin` can create all of
them except `file_fdw`. `pg_cron` can only be created in `defaultdb`.

On older major versions, a similar number of extensions is listed but more are refused with
`permission denied to create extension`. On PostgreSQL 17, 14 of the 74 listed extensions are
refused, among them `amcheck`, `pageinspect`, `pg_freespacemap` and `pg_visibility`. The lists
per version are in
[Extension versions](https://community.exoscale.com/product/dbaas/service-specific/postgresql/reference/extension-versions/index.md).

## Installed Is Not Always Usable

Some extensions install without error but do not work for `avnadmin`:

- **Superuser-only functions.** `amcheck`, `pageinspect`, `pg_logicalinspect`, `pg_surgery` and
  `pg_walinspect` create their functions, but calls fail with
  `permission denied for function ...`, and `GRANT EXECUTE` does not help.
- **Modules that are not loaded.** `pg_stat_monitor` and `pg_stat_plans` need to be loaded at
  server start, which the service does not do, so their views fail. `pg_stat_statements` is
  loaded on every service.

The [aiven_extras](https://community.exoscale.com/product/dbaas/service-specific/postgresql/how-to/use-aiven-extras/index.md) extension
provides wrappers for a few other operations that need a superuser, such as creating a
publication `FOR ALL TABLES`.

## Per Database, in SQL

- **Per database.** An extension is created in the database you are connected to. Each database
  that needs it needs its own `CREATE EXTENSION`. A new database only has `plpgsql`.
- **SQL only.** There is no API endpoint and no `exo` command for extensions, and they are not
  part of the service settings. Create them from a migration or a setup script that runs against
  each database.
- **Versions.** The version an extension gets is the default of the PostgreSQL major version of
  the service. An installed extension keeps its version until you run `ALTER EXTENSION ... UPDATE`.

## When an Extension Is Not Offered

You cannot load your own extension binaries, and no privilege works around the restrictions
above. If you need an extension that is not offered, look for an offered extension that covers
the need, move the logic into your application, or contact
[Exoscale support](https://www.exoscale.com/contact/) with your use case.

## Related Pages

- [Manage extensions](https://community.exoscale.com/product/dbaas/service-specific/postgresql/how-to/manage-extensions/index.md)
- [Supported extensions](https://community.exoscale.com/product/dbaas/service-specific/postgresql/reference/supported-extensions/index.md)
- [Extension versions](https://community.exoscale.com/product/dbaas/service-specific/postgresql/reference/extension-versions/index.md)
- [Limits and Quotas](https://community.exoscale.com/product/dbaas/service-specific/postgresql/service-boundaries/limits-and-quotas/index.md)

