Product reference pages are available in English only.
Database as a Service

DBaaS for PostgreSQL

What Is It?

DBaaS for PostgreSQL is a fully managed PostgreSQL service: IONOS CLOUD provisions, patches, monitors and handles failover for your clusters, so you manage your data rather than the infrastructure. A cluster runs on IONOS Cloud Enterprise VMs with dedicated CPU and connects to a private LAN in your Virtual Data Center (VDC). New clusters use the PostgreSQL v2 API and DCD workflow.

Quick Facts

Aspect Details
Type Managed relational database (PostgreSQL)
PostgreSQL versions 14, 15, 16, 17 and 18
Hosting IONOS Cloud Enterprise VM (Compute Engine substrate) with dedicated CPU
Storage type SSD Premium, which includes encryption at rest
Storage size Up to 2 TB per cluster (SSD Premium)
Cluster topology One primary node plus optional warm standby nodes (instance limit: see Default Contract Quotas)
Replication modes Asynchronous (default), Strictly Synchronous
Connection pooler Managed PgBouncer: Disabled, Transaction (default pool mode) or Session
Ports 5432 (PostgreSQL), 6432 (PgBouncer pooler)
Backups Daily base backup plus continuous WAL archiving; retention 1-365 days (default 7)
Maintenance Weekly 4-hour maintenance window
Uptime SLA 99.95%
Regions Berlin (de-txl), Frankfurt (de-fra), Paris (fr-par), Logroño (es-vit), London (gb-lhr), Worcester (gb-bhx), Las Vegas (us-las), Lenexa (us-mci), Newark (us-ewr)

Default Contract Quotas

Resource Default quota
CPU cores 16
RAM 32 GB
Database clusters 10
Disk space 1500 GB
Instances within each cluster 5

To change these quotas, contact IONOS CLOUD Support.

Connection Limits

max_connections is calculated from the RAM size per instance and is not user-configurable:

RAM Size max_connections
4GB 384
5GB 512
6GB 640
7GB 768
8GB 896
> 8GB 1000

The platform reserves 11 of these connections for internal use.

Extensions

Extension Activated by default Version Description
pg_stat_statements Yes 1.10 Track execution statistics of all SQL statements executed.
intarray 1.5 Functions, operators, and index support for 1-D arrays of integers.
pg_trgm 1.6 Text similarity measurement and index searching based on trigrams.
set_user Yes 4.0.1 Similar to SET ROLE but with added logging.
timescaledb 2.14.2 Enables scalable inserts and complex queries for time-series data.
tablefunc 1.0 Functions that manipulate whole tables, including crosstab.
plpgsql Yes 1.0 PL/pgSQL procedural language.
pg_partman 5.1.0 Extension to manage partitioned tables by time or ID.
hypopg 1.4.1 Hypothetical indexes for PostgreSQL.
btree_gin 1.3 Support for indexing standard datatypes in Generalized Inverted Index (GIN).
pg_stat_kcache Yes 2.3.0 Kernel statistics gathering.
citext 1.6 Data type for case-insensitive character strings.
pgcrypto 1.3 Cryptographic functions.
earthdistance 1.1 Calculate great-circle distances on the surface of the Earth.
postgis 3.5.0 PostGIS geometry and geography spatial types and functions.
cube 1.5 Data type for multidimensional cubes.
vector 0.8 Vector data type and ivfflat and hnsw access methods.
uuid_ossp 1.1 Generate Universally Unique Identifiers (UUIDs).
hstore 1.8 Data type for storing sets of key, value.
btree_gist 1.6 Support indexing common datatypes in Generalized Search Tree (GiST).
pg_cron 1.6 Cron-based job scheduler for PostgreSQL to run periodic commands. The cron_admin role is IONOS CLOUD's mechanism for giving users the ability to manage pg_cron jobs without needing superuser privileges.

Activate a non-default extension with create extension <name> CASCADE;. Manually activated extensions apply to clusters with PostgreSQL 15 and above.

What You Can Do

High Availability and Failover

Run a single-node cluster or a multi-node cluster with a primary node and standby nodes. If the primary fails, a standby is promoted automatically, and a lost node is replaced by a newly provisioned one. Choose Asynchronous replication for lower latency, or Strictly Synchronous so that commits are confirmed only after they are replicated, with no data loss on failover. IONOS CLOUD recommends at least 3 instances for production.

Note: Standby nodes run in warm standby and do not serve read requests, so clients reconnect to the new primary after a failover.

Scaling

Scale horizontally by changing the number of instances, which adds availability, not performance. Scale vertically by changing CPU cores and RAM per instance; the system replaces standby nodes first and the primary last, so the change causes one switchover. Storage size can be increased on the fly without disruption.

Connection Pooling

Enable the managed PgBouncer pooler when you create or update a cluster, in Transaction or Session mode. It helps when your application opens many short-lived connections or when client connections could exceed max_connections.

Backups, Restore and Cloning

Backups combine a daily base backup with continuous WAL archiving, so a backup covers a time range. Additional base backups are made after a major version upgrade and at cluster deletion. You choose the backup location (region) and the retention period, and you can change both later; pick a region other than the cluster's for off-site backups. Restore a cluster to a point in time, in place or to a different target cluster, or clone a cluster from a backup.

Note: WAL files are first archived to local disk and uploaded to Object Storage every 5 minutes; only then are they available for point-in-time recovery.

Version Upgrades and Maintenance

IONOS CLOUD applies minor PostgreSQL patches and operating system updates during your weekly maintenance window. You can upgrade to a higher major version in place from the DCD or the v2 API. The upgrade takes minutes, automatically creates a new backup, and removes database objects or extensions that are incompatible with the target version.

Note: Major version upgrades are irreversible and downgrades are not supported. Test the upgrade on a clone first.

Secure Connections and Access

All client connections use TLS; the default SSL mode is prefer and clients cannot disable it. Server certificates are issued by Let's Encrypt (root certificate ISRG Root X1) for the cluster's DNS name, and client libraries must support SCRAM-SHA-256 authentication. The initial user is not a superuser: it has CREATEDB and CREATEROLE, and you can grant cron_admin, pg_monitor, pg_read_all_stats and pg_stat_scan_tables.

Logs and Metrics

Set logsEnabled and metricsEnabled on the cluster (or the matching DCD observability settings) to forward logs and metrics to the IONOS CLOUD Logging Service and Monitoring Service. View metrics in Grafana, opened from the DCD, with metrics such as pg_up, connection counts, database size, replication lag and vacuum activity.

Migration

Move data into a cluster with pg_dump, pg_restore and psql.

Best For

Scenario Why It Fits
Production relational workloads Managed failover, multi-node clusters and continuous WAL backups with point-in-time recovery
Vector search and RAG The vector extension provides a vector data type with ivfflat and hnsw access methods
Time-series data The timescaledb extension handles scalable inserts and complex time-series queries
Geospatial applications The postgis extension adds geometry and geography spatial types and functions
Applications with many short-lived connections The managed PgBouncer pooler protects the database from connection overload

Consider Alternatives If

If You Need... Consider Why
MySQL compatibility MariaDB Managed MariaDB with MySQL compatibility and native JSON and GIS functions
A flexible document (NoSQL) data model MongoDB Managed MongoDB built for schema flexibility and large-scale datasets
An in-memory cache or key-value store In-Memory DB Data held in RAM, based on Valkey and compatible with the Redis OSS API

Key Considerations

Billing & Costs

  • Main billing: CPU cores and RAM per hour; storage and backup per GB per 30 days
  • Prices (EUR price list): 0,06 € per core per hour; 0,007 € per GB RAM per hour; 0,15 € per GB SSD Premium and 0,007 € per GB backup per 30 days
  • Additional costs: The Logging Service and Monitoring Service must be activated for your contract to receive logs and metrics, and they cost extra
  • Estimates: The DCD cost estimate during cluster creation does not include traffic or backup

Limitations

  • No superuser access, so pg_dumpall cannot be used
  • A v2 cluster cannot connect to the default postgres database; connect to the database you defined at provisioning
  • Storage size cannot be decreased and the storage type cannot be changed
  • Major version downgrades are not supported
  • Only one backup can be restored at a time, the cluster must be in the AVAILABLE state, and the backup must be active and belong to the cluster being restored
  • These IP ranges cannot be used: 10.208.0.0/12, 10.233.0.0/18, 192.168.230.0/24, 10.233.64.0/18
  • Pick the cluster's private IP in the LAN's /24 subnet between x.x.x.3 and x.x.x.10, which DHCP never assigns
  • Database logs (up to 175 MB) and auxiliary service logs share the database disk; if the disk runs full, PostgreSQL rejects write requests
  • Scaling, configuration changes and maintenance can cause a switchover that terminates open connections; configure clients to reconnect automatically

Management Options

  • Data Center Designer (DCD): create, configure, clone and restore clusters, and open metrics in Grafana
  • PostgreSQL v2 API: region-specific endpoints (for example https://postgresql.de-fra.ionos.com), token authentication, and PUT-based "Ensure" updates that replace the full cluster object
  • Terraform: ionoscloud_pg_cluster_v2