Skip to content

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.

UsageLimit
Superuser accessNot available. The administrative user avnadmin is not a superuser.
Nodes of a service1 (Hobbyist, Startup), 2 (Business) or 3 (Premium), all in the same zone
Maximum connectionsSet by the plan, for example 100 on startup-4
Major versions15, 16, 17 and 18. New services run 18.
Tablespacespg_default and pg_global only
Read replica planA Hobbyist plan cannot be used for a read replica.
Fork and point-in-time recoveryNot available on Hobbyist services. A fork can use any plan, Hobbyist included.
Synchronous replicationNot available on Startup, Business and Premium plans
On-demand backupNot available. Backups follow the schedule of the plan.
In-place restoreNot available. Point-in-time recovery creates a new service.
Manual failover or switchoverNot available. Failover is automatic.
Stopping and restarting a serviceNot 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 REPLICATION and BYPASSRLS attributes,
  • cancel and terminate other sessions with pg_cancel_backend() and pg_terminate_backend(), as a member of the pg_signal_backend predefined role,
  • read all pg_stat_* statistics views, as a member of pg_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.conf or to the operating system of the nodes. Server parameters are set on the service, see Configure PostgreSQL Settings.
  • Parameters whose context is superuser, such as log_min_duration_statement, cannot be changed per session. On PostgreSQL 16 and later, session_replication_role is an exception, see Disable Constraints During a Bulk Load.
  • Custom tablespaces cannot be created.
  • The public schema is owned by pg_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 --plans

The 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 PLAN

Parameters:

  • PLAN: name of the plan, for example startup-4.

Prices per plan are on the Managed PostgreSQL pricing page.

CLI Gaps

These operations exist in the API but not in exo dbaas:

OperationAPI command
Manage connection poolsexo api create-dbaas-pg-connection-pool, update-dbaas-pg-connection-pool, delete-dbaas-pg-connection-pool
Upgrade the major versionexo api create-dbaas-pg-upgrade-check, then exo api update-dbaas-service-pg with version
Create a read replicaexo api create-dbaas-service-pg with a read_replica integration
Change allow-replication on an existing userexo api update-dbaas-postgres-allow-replication
Start a pending maintenance updateexo api start-dbaas-pg-maintenance
Set pgaudit settingsexo api update-dbaas-service-pg with pgaudit-settings

Quotas

UsageQuota
DBaaS services overall10

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.

Related Pages

Last updated on