Schema Migration¶
After resolving errors in your schemas, you can use the schemas with a client application such as pgAdmin, ToadEdge, or the PSQL client, or migrate the schema to an EDB Postgres Advanced Server.
Note: For more information about using Toad Edge with EDB Postgres Advanced Server, see Toad Edge® for Postgres.
You can choose one of the following options for migrating schemas; migrate to an:
Existing on-premise EDB Postgres Advanced Server
New on-premise EDB Postgres Advanced Server
EDB Postgres Advanced Server on Cloud
Schema migration home page¶
Existing on-Premise EDB Postgres Advanced Server¶
You can migrate schemas to an existing on-premise EDB Postgres Advanced Server on Windows or Linux platforms.
Migrating schemas on Windows¶
Select the
Existing on-premise EDB Postgres Postgres Advanced Serveroption:
Existing on-premise EDB Postgres Advanced Server home page¶
Select one or more schemas to migrate on EDB Postgres Advanced Server:
Selecting schemas for migration¶
Note
In case your schemas are not 100% compatible, a banner will be displayed as shown, and you can fill the Contact Us form for any assistance required.
The Contact Us form¶
Download the assessed schemas:
Download the assessed schemas¶
Click on
Windows:
Selecting Windows operating system¶
To import the schemas, run the following command:
On CLI
\i c:\users\...\<project_name>.sql
On cmd/shell
edb-psql -f <project_name>.sql
Migrating schemas on Linux¶
To migrate schemas to an existing on-premise EDB Postgres Advanced Server on Linux, complete the following steps:
Click the
Existing on-premise EDB Postgres Advanced Serveroption:
Existing on-premise EDB Postgres Advanced Server home page¶
Select one or more schemas to migrate to EDB Postgres Advanced Server:
Selecting schemas for migration¶
Download the assessed schemas:
Download the assessed schemas¶
Click on
Linux:
Selecting Linux operating system¶
To import the schemas, run the following command:
sudo su - enterprisedb edb-psql edb create database <database_name>; \\connect <database_name> \\i <project_name>.sql
New On-Premise EDB Postgres Advanced Server¶
You can install new EDB Postgres Advanced Server on-premise on Windows or Linux platforms and migrate the schemas.
Migrating schemas on Windows¶
To migrate schemas to a new on-premise EDB Postgres Advanced Server on Windows, complete the following steps:
Click
New on-premise EDB Postgres Postgres Advanced Serveroption.
New on-premise EDB Postgres Advanced Server home page¶
Select one or more schemas to migrate on EDB Postgres Advanced Server.
Selecting schemas for migration¶
Select the
Windowsoperating system.
Selecting Windows operating system¶
Download Windows Installer.
Downloading Windows installer¶
For installation steps, click EDB Postgres™ Advanced Server Installation Guide for Windows.
View Windows installation guide¶
Download the assessed schemas.
Downloading the assessed file¶
You can import schemas by running the following command:
On CLI
\i c:\users\...\<project_name>.sql
On cmd/shell
edb-psql -f <project_name>.sql
Importing schemas into EDB Postgres Advanced Server¶
Note
You can also use pgAdmin instead.
The schemas are migrated to the target server.
Migrating schemas on Linux¶
To migrate schemas to an on-premise EDB Postgres Advanced Server on Linux, complete the following steps:
Click
New On-premise EDB Postgres Advanced Serveroption.
Migrating schemas home page¶
Select one or more schemas to migrate on EDB Postgres Advanced Server.
Selecting schemas for migration¶
Select the
Linuxoperating system.
Selecting Linux operating system¶
You can select one of the following options to install the EDB Postgres Advanced Server:
Repository
More options
Selecting Linux repository¶
For information on the installation procedure, click
EDB Postgres™ Advanced Server Installation Guidefor Linux:
Selecting Linux installation guide¶
Download the assessed schemas:
Downloading the assessed schemas¶
To import the schemas, run the following command:
sudo su - enterprisedb edb-psql edb create database <database_name>; \connect <database_name> \i <project_name>.sql
Importing schemas into EDB Postgres Advanced Server¶
Note
You can also use pgAdmin instead.
The converted schemas are migrated to the target server.
![]()
A successful schema migration¶
EDB Postgres Advanced Server on Cloud¶
To migrate schemas on EDB Postgres Advanced Server on Cloud, complete the following steps:
Click
EDB Postgres Advanced Server on Cloudoption:
EDB Postgres Advanced Server on Cloud¶
Select one or more schemas to migrate on EDB Postgres Advanced Server:
Selecting schemas for migration¶
Select the cloud platform. For example,
IBM Cloud:
Selecting cloud option for migration¶
To launch a new cluster, click
Go to Cloud:
Launching a cloud cluster¶
Or, if you have an existing cluster running, click Next.
Enter the required connection details on the Connect page:
Connecting to the cloud cluster¶
Note
You can click Edit Connection to make changes to the connection details and retest the connection details.
Click
Test Connectionto verify the connection details:
Verify the connection details¶
Once the connection is successful, click
Next:
A successful migration¶
The converted schemas are migrated to the target server.
