Skip to main content
Version: 1.15

Migrate from PostgreSQL 12

Important

OpenEverest 1.6.0 has officially discontinued support for PostgreSQL 12. To ensure compatibility, security, and access to new features, it is highly recommended to migrate to PostgreSQL 13 or later.

Preparation before migration​

Before migrating from PostgreSQL 12, it's important to prepare thoroughly to ensure a smooth transition. Here are the key steps:

  1. Backup your data - Create a complete backup of your data before upgrading.

  2. Select a target version - Choose the PostgreSQL version you want to migrate to (e.g., 15 or 16). Select a stable, supported release compatible with OpenEverest's infrastructure requirements.

  3. Check Compatibility - Verify that your configurations are compatible with the new PostgreSQL version.

  4. Provision a new PostgreSQL database in OpenEverest – Use OpenEverest to deploy a new database with the desired PostgreSQL version.

Choose a migration option​

When upgrading from PostgreSQL 12, it is essential to choose a migration method that suits your environment. For a smooth transition, consider the following factors during migration:

  • Data size

  • Downtime tolerance

PostgreSQL offers several migration options. Each method has its own benefits and trade-offs in terms of speed, complexity, and risk.

Review PostgreSQL documentation to select the best option for your environment.

💡 Need assistance? Connect with OpenEverest support!

⚖ Expand for a detailed comparison between logical dump and restore vs logical replication

Logical dump and restore vs. Logical replication​

Two commonly used approaches to migrating a PostgreSQL database are Logical Dump and Restore and Logical Replication. Both methods help move data from one instance to another, but they have different purposes and distinct advantages.

FeatureLogical dump and restoreLogical replication
Setup complexitySimple and portableMore complex, involves replication slots
Best suited forOne-time migrations, backups, and moving datasets across versionsContinuous data synchronization
Downtime ImpactRequires application downtime during migrationMinimal downtime
Primary Keys requirementNo primary keys required; exports full table data regardless of constraintsRequires primary keys (or unique indexes) on tables
Schema compatibilityAllows schema modifications before restoration; supports cross-version migrationRequires schema compatibility between source and target databases
PerformanceCan be slow for large datasets due to full export/importMore efficient for continuous updates, but may add replication overhead

This option is recommended for minimal downtime.

Use logical replication to continuously replicate data from your PostgreSQL 12 cluster into a PostgresQLG 13+ cluster with little to no downtime.

📚 Learn more