How to create clusters
- Web console
- CLI
- Terraform
-
In the sidebar, go to
Storage → PostgreSQL.
-
Click
Create cluster.
- On the page that opens, enter the cluster name and an optional description.
-
(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.
- (Optional) In the Pooling size field, specify the number of connections allowed in a pool for a single database.
- In the Access field, select whether the cluster should have a public IP address and access through the internet.
-
In the Resources section, configure the cluster resources:
- Select the number of vCPUs and RAM to allocate to the cluster.
- Specify the storage capacity.
- Set the number of the cluster hosts.
-
In the Database section, specify the parameters for the connection to the database:
- Enter the database name.
-
Enter the username.
The following usernames are reserved; do not specify them:
admin,repl,monitor,postgres,publicandnone. -
Enter the password. It must contain at least:
- 8 characters
- One lowercase character
- One uppercase character
- One special character
-
(Optional) In the Backup settings section, configure the cluster backup:
- Schedule the backup. The backup is created every day at the selected time.
- Specify how long, in days, every backup and write-ahead logs (WALs) should be kept.
-
(Optional) Configure PostgreSQL additional parameters.
Supported PostgreSQL parameters
- Click Create cluster.
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
- Web console
- CLI
- Terraform
-
In the sidebar, go to
Storage → PostgreSQL.
- Open the page of the required cluster and then go to the Settings tab.
-
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.
- In the Access field, select whether the cluster should have a public IP address and access through the internet.
- In the Resource preset field, change the number of vCPUs and RAM that should be allocated to the cluster.
- Change the number of hosts in the cluster.
-
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
-
Configure PostgreSQL additional parameters.
Supported PostgreSQL parameters
How to delete clusters
- Web console
- CLI
-
In the sidebar, go to
Storage → PostgreSQL.
- Click the cluster you want to delete.
- On the Settings tab, click Delete cluster.
- In the dialog window, enter the cluster name and click Delete cluster.
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.