Use this file to discover all available pages before exploring further.
Modern AI and ML workloads operate with sizable datasets. Managed Service for PostgreSQL allows you to apply its flexibility and dataset management capabilities to enhance the performance of your projects in Nebius AI Cloud.This guide will get you started with Managed Service for PostgreSQL. You will:
Install and configure CLIs to work with Managed Service for PostgreSQL
Create your first cluster
Connect to the cluster
Perform basic operations with a PostgreSQL database
If you want to move data from an external PostgreSQL cluster to a Managed PostgreSQL cluster, use migration or replication.
Specify the Name for your cluster. Do not use spaces in cluster names.
Write a short Description of your cluster. For example, .
In the Username field, type the username.
In the Password field, come up with a secure password. Such a password must contain at least:
8 characters
One lowercase character
One uppercase character
One special character
Keep all the other settings with their default values - they will be more than enough for the purposes of this guide.
Click Create cluster.
On the Managed Service for PostgreSQL® page, you will see your cluster with the Provisioning status.Please wait until its status changes to Running before trying to perform any operations on your new cluster.
Prepare environment variables:
Come up with a name for your Managed Service for PostgreSQL cluster:
export CLUSTER_NAME=<new_PostgreSQL_cluster_name>
Do not use spaces in your cluster names.
Copy the network ID from the Network section of the web console and save it to an environment variable:
export NETWORK_ID=<network_ID>
Set the credentials for your Managed Service for PostgreSQL database: database name, your username and database password:
From the folder to which you unarchived the file, connect to your Managed Service for PostgreSQL cluster with the Nebius AI Cloud CLI and create a database on your cluster:
CREATE DATABASE dellstore;
Upload the dataset from the file onto your cluster:
\i dellstore2-normal-1.0.sql;
Check if the objects were created successfully:
\d
You should see the following output:
Output
List of relations Schema | Name | Type | Owner--------+--------------------------+----------+----------------- public | categories | table | <your_username> public | categories_category_seq | sequence | <your_username> public | cust_hist | table | <your_username> public | customers | table | <your_username> public | customers_customerid_seq | sequence | <your_username> public | inventory | table | <your_username> public | items | table | <your_username> public | orderlines | table | <your_username> public | orders | table | <your_username> public | orders_orderid_seq | sequence | <your_username> public | products | table | <your_username> public | products_prod_id_seq | sequence | <your_username> public | reorder | table | <your_username>(13 rows)
Query the database to see that your row was written correctly:
SELECT * FROM products WHERE prod_id = 10001;
You should get the following output:
prod_id | category | title | actor | price | special | common_prod_id---------+----------+---------------------+--------------+-------+---------+---------------- 10001 | 42 | FUTURE INTELLIGENCE | FORD PREFECT | 42.42 | 0 | 1978(1 row)
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.