Skip to main content
In Managed Service for PostgreSQL, databases are organized into collections called clusters. You can create, modify or delete clusters.
If you want to move data from an external PostgreSQL cluster to a Managed PostgreSQL cluster, use migration or replication.

How to create clusters

  1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL.
  2. Click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/plus.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=7c9efc69d65fc58db0eb73702fd81aa1 Create cluster.
  3. On the page that opens, enter the cluster name and an optional description.
  4. (Optional) Select one of the pooling modes:
    • Transaction: A connection is allocated from a connection pool for every transaction. Once the transaction is completed, the connection returns to the pool. The transaction mode is suitable for a large number of idle connections. Additionally, this mode allows you to allocate a smaller pooling size in comparison with the session mode. However, the transaction mode offers a limited support of PostgreSQL features; not all PostgreSQL clients are compatible with this mode.
    • Session (set by default): A connection is allocated from a connection pool for every client session. Once the session is terminated, the connection returns to the pool. More PostgreSQL clients support the session mode, over the transaction mode. Moreover, the session mode does not limit the number of PostgreSQL features that you can use. However, a database has to consume more resources to maintain long-lasting connections. You may need to increase the pooling size.
  5. (Optional) In the Pooling size field, specify the number of connections allowed in a pool for a single database.
  6. In the Access field, select whether the cluster should have a public IP address and access through the internet.
  7. In the Resources section, configure the cluster resources:
    1. Select the number of vCPUs and RAM to allocate to the cluster.
    2. Specify the storage capacity.
  8. Set the number of the cluster hosts.
  9. In the Database section, specify the parameters for the connection to the database:
    1. Enter the database name.
    2. Enter the username. The following usernames are reserved; do not specify them: admin, repl, monitor, postgres, public and none.
    3. Enter the password. It must contain at least:
      • 8 characters
      • One lowercase character
      • One uppercase character
      • One special character
  10. (Optional) In the Backup settings section, configure the cluster backup:
    1. Schedule the backup. The backup is created every day at the selected time.
    2. Specify how long, in days, every backup and write-ahead logs (WALs) should be kept.
  11. (Optional) Configure PostgreSQL additional parameters.
  12. Click Create cluster.
The cluster will have the Provisioning status while it is being created. Before you perform any operations, wait for the Running status.

How to restore clusters from backups

Managed PostgreSQL creates daily backups for each cluster, and you can create a new cluster from a backup. For more details and instructions, see Backups in Managed Service for PostgreSQL®.

How to modify clusters

  1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL.
  2. Open the page of the required cluster and then go to the Settings tab.
  3. Change the database pooling mode. Managed PostgreSQL supports the following options:
    • Transaction: A connection is allocated from a connection pool for every transaction. Once the transaction is completed, the connection returns to the pool. The transaction mode is suitable for a large number of idle connections. Additionally, this mode allows you to allocate a smaller pooling size in comparison with the session mode. However, the transaction mode offers a limited support of PostgreSQL features; not all PostgreSQL clients are compatible with this mode.
    • Session (set by default): A connection is allocated from a connection pool for every client session. Once the session is terminated, the connection returns to the pool. More PostgreSQL clients support the session mode, over the transaction mode. Moreover, the session mode does not limit the number of PostgreSQL features that you can use. However, a database has to consume more resources to maintain long-lasting connections. You may need to increase the pooling size.
  4. In the Access field, select whether the cluster should have a public IP address and access through the internet.
  5. In the Resource preset field, change the number of vCPUs and RAM that should be allocated to the cluster.
  6. Change the number of hosts in the cluster.
  7. In the Database section, change the password of the database user. The password must contain at least:
    • 8 characters
    • One lowercase character
    • One uppercase character
    • One special character
  8. Configure PostgreSQL additional parameters.

How to delete clusters

  1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL.
  2. Click the cluster you want to delete.
  3. On the Settings tab, click Delete cluster.
  4. In the dialog window, enter the cluster name and click Delete cluster.
You can later restore a deleted cluster from its backup. Managed PostgreSQL preserves backups of deleted clusters for the retention period configured in the backup settings.

Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.