Migrating PostgreSQL
This document provides instructions about:
- migrating your PostgreSQL databases from the proof-of-concept (PoC) environment to your new FSDH workspace in the production (prod) environment
- offboarding your PostgreSQL databases from PoC should you not be shifting your research to prod
Please note: Active analysis and experimentation in PoC can continue until Oct. 31, 2025. All databases, storage, web apps, and Databricks resources must be migrated or offboarded from PoC by Nov. 30, 2025.
A. Migrating from PoC to prod
To migrate your PostgreSQL databases, you must have a new workspace in prod. Once we launch at the end of June, you can proceed with the workspace intake process through the GC Hosting Services Portal. Guidance is available on the FSDH GCXchange site and FSDH product guide (opens new window).
Once your workspace has been provisioned in prod, you can migrate resources from PoC to prod. The Federal Science DataHub support team will assist you with migrating your PostgreSQL databases. Please submit a Support Request to get started.
Alternatively, you can migrate your PostgreSQL databases yourself as follows:
Step 1. Create a Dump of Your Database
Whether you are migrating your PostgreSQL databases to your new workspace in prod or offboarding them from PoC, you should start by creating a dump of your databases. This dump will be used to either import your databases into prod or to store them for future use.
You can choose one of the following three ways to create a dump.
Option 1: Create a Dump Using pg_dump
Connect to your PostgreSQL database using
psqlor a similar tool.Run the following command to create a dump of your database:
pg_dump -U <username> -d <database_name> -f <dump_file_name>.sql
Replace <username> with your PostgreSQL username, <database_name> with the name of the database you want to dump, and <dump_file_name> with the name you want to give to the dump file.
- Validate that the dump file has been created successfully by checking the file location.
Option 2: Create a Dump Using pgAdmin
Open pgAdmin and connect to your PostgreSQL database.
Right-click on the database you want to dump and select
Backup....

In the
Backup Optionstab, select the format for the backup file (e.g.,Plain).In the
Filenamefield, specify the location and name of the dump file.

Click
Backupto create the dump file.Validate that the dump file has been created successfully by checking the file location.
Option 3: Create a Dump Using DBeaver
Open DBeaver and connect to your PostgreSQL database.
Right-click on the database you want to dump and select
Tools>Export Database.In the
Export Settingstab, select the format for the export file (e.g.,SQL).In the
Output Filefield, specify the location and name of the dump file.Click
Finishto create the dump file.Validate that the dump file has been created successfully by checking the file location.
Step 2. Import PostgreSQL to Your Workspace in Prod
Once you've created the dump files (Step 1), you can import your databases into prod using one of the three options below.
Option 1: Import Dump Using psql
Connect to the prod PostgreSQL database using
psqlor a similar tool.Run the following command to import the dump file into the prod database:
psql -U <username> -d <database_name> -f <dump_file_name>.sql
Replace <username> with your PostgreSQL username, <database_name> with the name of the database you want to import into, and <dump_file_name> with the name of the dump file.
- Validate that the import process was successful by checking the prod database.
Option 2: Import Dump Using pgAdmin
Open pgAdmin and connect to the prod PostgreSQL database.
Right-click on the database you want to import into and select
Restore....

In the
Restore Optionstab, select the dump file you created in the previous step.Click
Restoreto import the dump file into the prod database.

- Validate that the import process was successful by checking the prod database.
Option 3: Import Dump Using DBeaver
Open DBeaver and connect to the prod PostgreSQL database.
Right-click on the database you want to import into and select
Tools>Import Database.In the
Import Settingstab, select the format of the import file (e.g.,SQL).In the
Input Filefield, select the dump file you created in the previous step.Click
Finishto import the dump file into the prod database.Validate that the import process was successful by checking the prod database.
B. Offboarding PostgreSQL from PoC
If you are not moving to prod, you can simply store the dump files created in Step 1 above for future use or for archival purposes.
C. Support
If you encounter any issues during the migration process, please contact the Federal Science DataHub support team by submitting a Support Request. Our team is happy to assist with migrating or offboarding your databases.