Skip to content

Managed PostgreSQL Service

The Managed PostgreSQL Service lets you deploy and run production-ready PostgreSQL databases on your registered infrastructure. The platform handles provisioning, configuration and day-2 operations (resizing, version upgrades, high availability), so you can focus on your data instead of operating a database.

PostgreSQL databases are backed by the CloudNativePG operator running on Kubernetes. The platform manages that layer for you — you work only with the database instance.


Key Features

  • On-Demand Provisioning: Create a PostgreSQL instance by picking a size, version and storage.
  • High Availability: Optionally run the instance as a 3-instance high-availability cluster for resilience.
  • Vertical Scaling: Change the instance size as your workload grows.
  • Storage Growth: Increase storage on demand. Storage can only grow, never shrink.
  • Version Upgrades: Move an instance to a newer supported PostgreSQL version.
  • On-Demand Credentials: Read live connection details when you need them; passwords are never stored by the platform.

Prerequisites

Managed PostgreSQL is offered through a Service Config that an organization administrator prepares on an infrastructure (see Infrastructure, Service Configs and Service Platforms). Before you can create a database, the target infrastructure's Service Config must have:

  1. An MKS network platform (defines the external network), and
  2. A PostgreSQL platform that is enabled.

When you create an instance you select the project and the Service Config; the platform deploys onto that config's PostgreSQL platform.


PostgreSQL Instances

A PostgreSQL Instance is the core resource representing a managed database. You first choose where the database runs — narrowing by Region, Zone and Infrastructure — and then select the Service Config. Only Service Configs that have an enabled PostgreSQL platform are selectable. You then configure:

  • Project: The project that owns the instance.
  • Service Config: The infrastructure Service Config (and therefore the PostgreSQL platform) the instance runs on.
  • Size: A t-shirt size that maps to CPU and memory for the instance.
  • Version: The PostgreSQL major version. Available versions come from the platform.
  • Storage: The amount of persistent storage, in GiB. Defaults to 20 GiB (minimum 1 GiB). Storage can be increased later but never reduced.
  • High Availability: Whether the instance runs as a 3-instance high-availability cluster. This is a simple on/off switch — the replica count is fixed at 3, not configurable.
  • Database (optional): The name of the initial database to create. Defaults to app. Set once at creation — it cannot be changed later.
  • Username (optional): The name of the initial application user. Defaults to admin. Set once at creation — it cannot be changed later.

Connecting to your database

Connection details are read on demand from the running instance and are never stored by the platform. From the instance's detail page you can retrieve:

  • Host and Port
  • Database name
  • Username
  • Password
  • A ready-to-use connection string (postgresql://…)

You can reveal and copy each value, and refresh the credentials when you need to. Because credentials are fetched live rather than persisted, the platform can surface them without ever holding your password at rest.


Managing an Instance

After creation you can:

  • Resize: Change the instance size to give the database more (or less) CPU and memory.
  • Grow storage: Increase the storage allocation. This is one-way — storage cannot be shrunk.
  • Upgrade the version: Move to a newer supported PostgreSQL version. PostgreSQL cannot be downgraded, so only newer versions are offered.
  • Toggle high availability: Switch the 3-instance HA cluster on or off.

Spec changes (version, size, storage, high availability) are applied to the backing cluster by the platform.

What you cannot change

The Service Config, project and infrastructure are fixed once the instance is created, along with the database name and username.


Lifecycle States

Managed PostgreSQL instances follow this lifecycle:

  1. Pending: The instance is being prepared for creation.
  2. Creating: The platform is provisioning the database.
  3. Active: The instance is running and available.
  4. Updating: A change (resize, storage growth, version upgrade, HA toggle) is being applied.
  5. Deleting: The instance and its resources are being removed.
  6. Error: An operation failed and the instance requires attention.

Getting Started

To deploy your first database, navigate to the Managed Services > PostgreSQL section in the platform dashboard. Pick the region, zone and infrastructure, select a Service Config and a project, then define the instance's size, version and storage.

If the PostgreSQL option is unavailable, ask your organization administrator to add and enable a PostgreSQL platform on the infrastructure's Service Config — see Infrastructure, Service Configs and Service Platforms.