My customer accountContact commercialWebmailOVHcloud Blog

Welcome to OVHcloud.

Log in to order, manage your products and services, and track your orders

Log in

Getting started with a PostgreSQL cluster

Find out how to order, secure and connect to your PostgreSQL instance

Last updated 30th December 2019


The Enterprise Cloud Databases solution offers database engines such as PostgreSQL on a dedicated cluster. The cluster is managed by OVHcloud, but you have the superuser role on your cluster. This guide will give you step-by-step instructions on how to create your PostgreSQL cluster, and test the connection.


  • an active OVHcloud customer account
  • the ability to establish a connection from an IP added into the security groups
  • a PostgreSQL client installed on the desktop you want to use for accessing the database


A cluster is initially made up of the following elements:

  • a master node in read/write mode
  • a replication node in read-only mode
  • a backup node that does not accept customer connections

Please refer to the technical architecture documentation for further information on the technical aspects of how your managed solution works.


Step 1: Order your cluster.

Log in to the OVHcloud Control Panel, and click Bare Metal Cloud, then Enterprise Cloud Databases. Next, click Order a cluster.

You will then need to choose a number of different settings to create your cluster:

  • the version of PostgreSQL you want to install
  • the region
  • your solution’s technical features (with four configurations offered — cluster16, cluster32, cluster64, cluster128)
  • the option of adding extra nodes to your cluster (with technical features that are equal to the cluster)
  • the commitment period
  • the payment frequency

Step 2: Update your user.

Once your order is complete, your cluster will appear in your control panel. By default, OVHcloud creates a user with "postgres" admin rights. You will need to set the user’s password before the first connection.

Step 3: Configure a security group.

Since access to your PostgreSQL instance is exposed on the public network, you will need to filter access using a security group. This can just include standalone IPs, or blocks of IP addresses.

With your service open on the OVHcloud Control Panel, go to the Settings tab, then click on the Security groups section. Click Create a group.

Give your group a name, then enter the IP addresses.

For example:

Step 4: Connect to your instance.

OVHcloud provides you with two unique entry points to your cluster, no matter how many nodes have been created:

  • read-write connection point
  • read-only connection point

The connection settings and methods are all available via the OVHcloud Control Panel.

Go to the Home tab, then go to the Connection information section.

Here are some examples of connection strings:

psql -U postgres -h -p 38697 -W --set=sslmode=require
psql -U postgres -h -p 6713 -W --set=sslmode=require

Step 5: Create the databases and users.

Once you have logged in to your cluster, you can create additional databases and users. Please refer to the PostgreSQL documentation for instructions on how to create databases and users.

Go further

Learn how to manage your PostgreSQL cluster by reading OVHcloud’s technical guides for further information on the technical aspects of how your managed solution works.

Join our community of users on

Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.

These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices incl. VAT may vary according to the customer's country of residence
(by default, the prices displayed are inclusive of the UK VAT in force).