Limits and Quotas - PostgreSQL
Check what Managed PostgreSQL allows before you size, migrate or automate a service: the hard
limits, the privileges of avnadmin, the extensions you can create and the quota of your
organization.
Limits
These limits cannot be raised.
| Usage | Limit |
|---|---|
| Superuser access | Not available. The administrative user avnadmin is not a superuser. |
| Nodes of a service | 1 (Hobbyist, Startup), 2 (Business) or 3 (Premium), all in the same zone |
| Maximum connections | Set by the plan, for example 100 on startup-4 |
| Major versions | 15, 16, 17 and 18. New services run 18. |
| Tablespaces | pg_default and pg_global only |
| Read replica plan | A Hobbyist plan cannot be used for a read replica. |
| Fork and point-in-time recovery | Not available on Hobbyist services. A fork can use any plan, Hobbyist included. |
| Synchronous replication | Not available on Startup, Business and Premium plans |
| On-demand backup | Not available. Backups follow the schedule of the plan. |
| In-place restore | Not available. Point-in-time recovery creates a new service. |
| Manual failover or switchover | Not available. Failover is automatic. |
| Stopping and restarting a service | Not available |
Connections
The maximum number of connections depends on the plan. Read the value of your own service:
SHOW max_connections;Three of these connections are reserved for superusers (superuser_reserved_connections), so
avnadmin and your application roles can open slightly fewer. When the limit is reached, new
clients are rejected with sorry, too many clients already.
To serve more clients without changing plan, use a connection pool: every service has a PgBouncer endpoint on a port of its own, where many client connections share a few PostgreSQL connections. See Connect with psql.
Administrative Privileges
avnadmin is the administrative account created with the service. It is not a superuser, but it
can:
- create databases and roles,
- open replication connections and bypass row-level security, with the
REPLICATIONandBYPASSRLSattributes, - cancel and terminate other sessions with
pg_cancel_backend()andpg_terminate_backend(), as a member of thepg_signal_backendpredefined role, - read all
pg_stat_*statistics views, as a member ofpg_read_all_stats, - create subscriptions on PostgreSQL 16 and later, as a member of
pg_create_subscription.
It is not a member of pg_monitor or pg_read_all_settings.
Because avnadmin is not a superuser:
- There is no access to the file system, to
postgresql.confor to the operating system of the nodes. Server parameters are set on the service, see Configure PostgreSQL Settings. - Parameters whose
contextissuperuser, such aslog_min_duration_statement, cannot be changed per session. On PostgreSQL 16 and later,session_replication_roleis an exception, see Disable Constraints During a Bulk Load. - Custom tablespaces cannot be created.
- The
publicschema is owned bypg_database_owner.
Extensions
Extensions are installed, updated and removed in SQL, with CREATE EXTENSION, ALTER EXTENSION
and DROP EXTENSION. There is no API for them. A new service only has plpgsql.
On PostgreSQL 18, avnadmin can create every extension listed in pg_available_extensions except
file_fdw. pg_cron can only be created in defaultdb. Some extensions install but their
functions need superuser rights, for example amcheck, pageinspect, pg_surgery and
pg_walinspect.
On older major versions, pg_available_extensions lists a similar number of extensions, but fewer
can be created by avnadmin. On PostgreSQL 15, amcheck, pageinspect, pg_freespacemap and
pg_visibility are among those refused with permission denied to create extension. Check the
extensions you need before choosing an older version.
PostgreSQL Versions
The major version is chosen at creation time with --pg-version on exo dbaas create. An
existing service is upgraded to a newer major version through the API, see
Configure PostgreSQL Settings.
There is no downgrade.
Plan-Dependent Values
Node count, vCPU, memory and disk depend on the plan:
exo dbaas type show pg --plansThe backup profile also depends on the plan. All plans take a daily backup and archive the write-ahead log; the number of backups kept goes from 2 on Hobbyist to 31 on Premium. Restoring means forking the service, which Hobbyist services do not allow. Read the profile of a plan with:
exo dbaas type show pg --backup-config PLANParameters:
PLAN: name of the plan, for examplestartup-4.
Prices per plan are on the Managed PostgreSQL pricing page.
CLI Gaps
These operations exist in the API but not in exo dbaas:
| Operation | API command |
|---|---|
| Manage connection pools | exo api create-dbaas-pg-connection-pool, update-dbaas-pg-connection-pool, delete-dbaas-pg-connection-pool |
| Upgrade the major version | exo api create-dbaas-pg-upgrade-check, then exo api update-dbaas-service-pg with version |
| Create a read replica | exo api create-dbaas-service-pg with a read_replica integration |
Change allow-replication on an existing user | exo api update-dbaas-postgres-allow-replication |
| Start a pending maintenance update | exo api start-dbaas-pg-maintenance |
| Set pgaudit settings | exo api update-dbaas-service-pg with pgaudit-settings |
Quotas
| Usage | Quota |
|---|---|
| DBaaS services overall | 10 |
The quota covers the Database Services of every engine in the organization, not Managed PostgreSQL alone. To have it raised, contact Exoscale support.
Availability
Managed PostgreSQL is available in all Exoscale zones.
All nodes of a service run in the same zone. To keep a copy of the data in a second zone, create a read replica there.