Migrating from MySQL to PostgreSQL: what the move involves and how much effort it takes
Moving an application from MySQL to PostgreSQL is mostly a schema, SQL, driver and operations project, with a parallel run before cutover. The data copy is usually the easiest step. Expect to map column types, keys and auto-increment columns, rewrite queries that rely on MySQL syntax or behavior, swap the MySQL connectors in each service for PostgreSQL drivers, and rebuild backups, monitoring and failover for the new servers. Effort tracks the MySQL-specific SQL, stored code and enterprise features in use. An application on a portable ORM with no stored routines has a short list. One with triggers, stored procedures, views shaped by MySQL behavior, or MySQL Enterprise Edition features such as Transparent Data Encryption or Enterprise Audit has a longer one, because each item needs an equivalent, a redesign, or a recorded decision to drop it.
Start with an inventory that the application team and the database owner sign off together. List every MySQL-specific query pattern, every stored routine and trigger, every connector version, and every authentication method the clients use. PostgreSQL supports SCRAM password authentication, and MD5 password authentication is deprecated, so confirm which clients still depend on MD5 before the first test. Next, record how the MySQL estate is protected today. If it uses InnoDB Cluster or Group Replication, note that PostgreSQL does not detect a primary failure or notify a standby on its own, so automatic failover needs external tools that you choose and test during the move. Connection pooling, point-in-time recovery and read-only standbys also need a replacement plan that your team can operate.
This page does not give a duration or a price, because both depend on the written scope. Choose a PostgreSQL major version that will still be supported on your cutover date. As of this writing, versions 18, 17, 16 and 15 are listed as supported, while 14 has passed its end of support date. The PostgreSQL versioning policy lists the dates. Use the inventory to define the scope: query rewrites, procedure ports, test data, parallel run length, cutover window and rollback steps. A DeployOpen quote follows from that written scope, and most engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
Why teams leave MySQL for PostgreSQL, and when staying on MySQL is the sensible call
MySQL Community Edition is available under the GPL, while PostgreSQL is released under the PostgreSQL License, a permissive license similar to the BSD and MIT licenses. The difference matters most when you ship software that bundles the database, distribute modified database binaries, or work under a policy that restricts copyleft components. For a database that serves only internal applications, the license often matters less, so confirm the position with counsel before you treat it as a reason to migrate.
- Bundled or redistributed database: If your product ships the database server or modified builds to customers, the GPL terms need legal review, while the PostgreSQL License places fewer conditions on redistribution.
- Open-source policy screening: Some organizations accept only permissive licenses in shipped products. MySQL Community is free to download, but a GPL component may still need a formal exception under that policy.
- Single-vendor concentration: MySQL Community is Oracle's product, and its paid features and support come from Oracle. Teams that want more than one support market for the same engine weigh this when they choose.
- Staying on MySQL: If your policy accepts the GPL for internal use, MySQL 8.4 LTS or 9.7 LTS under Community Edition avoids a migration on license grounds alone.
Before you compare other factors, ask legal and procurement which license terms apply to each product you ship, host or hand to customers, and record the answer in the decision file.
MySQL offers two release tracks. LTS releases get 5 years of premier support and 3 years of extended support under the Oracle Lifetime Support Policy, and the current download page lists 9.7.2 LTS and 8.4.11 LTS. Innovation releases, such as 26.7.0, are supported only until the next Innovation release, so a team on that track must plan an upgrade each time a new one ships. PostgreSQL releases a new major version about once a year, ships minor releases at least every three months and supports each major for 5 years after its initial release.
- Innovation track churn: Support ends when the next Innovation release arrives, so this track suits teams that can upgrade continuously. It does not suit teams that run quarterly change windows.
- Yearly PostgreSQL majors: Each major has a published end of support date in the PostgreSQL versioning policy. For example, PostgreSQL 18 is supported until November 14, 2030.
- LTS point release stability: Features are added or removed only in the first release of an LTS series, and later point releases carry only necessary fixes. That keeps MySQL 8.4 LTS or 9.7 LTS predictable for change-controlled estates.
- Upgrade path on each side: PostgreSQL major upgrades can use pg_upgrade or logical replication, and logical replication can keep downtime to several seconds. Rehearse the path before you commit to a yearly cadence.
Check the end of support dates for your current MySQL series and your target PostgreSQL major in the vendors' policies, then confirm that your change process can run a major upgrade on the cadence you choose.
Several controls that regulated teams often request sit in MySQL Enterprise Edition rather than in Community Edition: Enterprise Backup for hot backups, Transparent Data Encryption, Enterprise Audit, Enterprise Firewall, Thread Pool, external authentication modules, Enterprise Encryption and 24x7 Oracle support. This reason matters when a control appears in your security baseline or audit scope and you cannot meet it with open tooling your team is prepared to operate. Confirm how encryption at rest, audit logging and firewall controls are provided in your chosen PostgreSQL build, and do not assume parity with the MySQL Enterprise feature.
- Backup and recovery: Enterprise Backup provides hot backups in MySQL. PostgreSQL offers base backups, archived WAL for point-in-time recovery and incremental backups through pg_basebackup and pg_combinebackup, so test the full restore process before you treat the two as equivalent.
- Encryption and audit: Transparent Data Encryption, Enterprise Encryption and Enterprise Audit are MySQL Enterprise features. Ask your PostgreSQL distribution or extension vendor for the equivalent controls and the evidence they produce.
- Authentication: MySQL Enterprise adds external authentication modules. PostgreSQL documents methods including LDAP, GSSAPI, certificate, PAM and OAuth, so check whether one of them fits your directory and identity provider.
- Connection controls: Thread Pool and Enterprise Firewall are MySQL Enterprise features. PgBouncer is a lightweight connection pooler and a separate project, so it covers pooling but does not replace a firewall.
- Staying on MySQL: If Enterprise Backup, Transparent Data Encryption or Enterprise Audit appear in your baseline, an Enterprise subscription on MySQL 8.4 LTS or 9.7 LTS may be the sensible call. Community Edition with InnoDB Cluster still covers high availability without it.
Map each control named in your security baseline or audit scope to a MySQL Enterprise feature and to a tested PostgreSQL equivalent, and request subscription terms from Oracle for any gap that remains.
Some teams move to PostgreSQL because it already sits behind their other systems. One engine reduces the number of backup designs, monitoring setups, upgrade runbooks and skill sets the team must maintain. This reason matters when the team already runs PostgreSQL for applications and has high availability tooling in place, such as Patroni on virtual machines or CloudNativePG on Kubernetes. It matters less when the MySQL estate is well run and its dependent tools support MySQL natively, because consolidation then only shifts work between teams. Staying is the better choice when MySQL is already your standard for high availability, since InnoDB Cluster, Group Replication with automated failover, MySQL Router and MySQL Shell all come with MySQL Community Edition.
- One engine to operate: Backup, monitoring, access control and upgrades are designed per engine, so a second engine adds a second runbook for the same team.
- High availability tooling already in place: Patroni supports PostgreSQL 9.3 to 18 with an external configuration store such as etcd or Kubernetes. If your team already runs it, a migration reuses that work.
- Dependent tools: Zabbix 7.4 stores server data in MySQL, MariaDB or PostgreSQL, so a Zabbix estate can keep MySQL with no engine change. Review the Zabbix requirements for each tool you run.
- Failover is still a separate design: PostgreSQL does not detect a failed primary or notify standbys on its own, so consolidation does not remove the need for Patroni, CloudNativePG or another failover tool.
List every system that connects to the database, and confirm each one's supported engines and versions in its own documentation before you count consolidation as a saving.
What maps cleanly from MySQL to PostgreSQL and what does not
This table maps the MySQL capabilities that migration teams ask about to their PostgreSQL counterparts and notes the work each move creates. Read the middle column for the equivalent and the right column for the effort, and treat any cell that says to confirm as an open question. Most core database functions have a counterpart, but high availability and backups need different tools, and the enterprise security features need a confirmed PostgreSQL equivalent before go-live.
| Source capability (MySQL) | PostgreSQL equivalent | Migration notes |
|---|---|---|
| Licence and release model | PostgreSQL License, a permissive BSD or MIT style license; a major release about yearly, each supported five years. | MySQL Community is GPL with LTS and Innovation tracks. Choose a PostgreSQL major whose support end date clears your go-live and maintenance plan. |
| High availability | Hot standbys with synchronous or asynchronous replication; automatic failover needs Patroni or CloudNativePG. | InnoDB Cluster includes automated failover in Community Edition. Design failover again, so plan time for Patroni or CloudNativePG setup and failover testing. |
| Backups | Point-in-time recovery from a base backup plus archived WAL; pg_basebackup takes incremental backups. | Enterprise Backup hot backups are a paid MySQL feature. Test restores to a point in time, and set WAL archiving and retention before cutover. |
| Authentication | GSSAPI, LDAP, certificate and OAuth methods; MD5 is deprecated in favor of SCRAM. | MySQL external authentication modules are Enterprise only. Map each login method to a PostgreSQL method, then test every client that connects. |
| Connectors | A PostgreSQL driver per language stack, including ODBC, JDBC and .NET applications. | Connection strings, SQL dialect and driver options often change, so test each application against the new driver. |
| Connection pooling | PgBouncer, a lightweight external pooler; version 1.26.1 released October 14, 2026. | Thread Pool is an Enterprise feature in MySQL. Choose the pooling mode per application, and check it against session state the apps depend on. |
| Stored procedures, triggers and views | Both platforms have these objects; the procedural syntax differs, so each one needs conversion. | Inventory every routine, trigger and view, then convert and test them against production-like data. |
| Transparent Data Encryption and Enterprise Encryption | No equivalent confirmed yet. Confirm the PostgreSQL option before the plan depends on it. | This is an Enterprise Edition feature in MySQL. Agree the encryption layer with your assessor and storage team before you pick a PostgreSQL option. |
| Enterprise Audit, Enterprise Firewall and Performance Schema | No equivalent confirmed yet. Confirm the audit, firewall and monitoring options you will use. | Audit and Firewall are Enterprise Edition features; Performance Schema is in Community Edition. Map each control before cutover. |
Which documented import paths exist, and which of them start from MySQL
The PostgreSQL documentation describes three major-upgrade paths, and each one starts from a running PostgreSQL cluster, so none of them loads a MySQL database by itself. The MySQL side of the move depends on a separate extraction and conversion step, covered by the fourth card.
pg_dumpall and restore
Run pg_dumpall on a PostgreSQL source cluster and restore its output into a new installation of the target version. The upgrade documentation lists this as one of three major-upgrade methods. Because it starts from a running PostgreSQL cluster, it does not move MySQL data on its own, so the data has to reach PostgreSQL first. Time the dump and restore on a copy of your data, because the outage window grows with database size.
Upgrading a PostgreSQL clusterpg_upgrade for major upgrades
Run pg_upgrade against an existing PostgreSQL data directory to move it to a newer major version without a full dump and restore. PostgreSQL 18 retains planner statistics across major upgrades and adds parallel jobs and a --swap option. Confirm how --swap behaves on your file layout in the PostgreSQL 18 documentation before you plan the outage window, and test query plans on the copy to confirm the statistics benefit for your workload.
Logical replication for cutover
Logical replication works between different major versions, and the upgrade documentation describes it as allowing major upgrades with only several seconds of downtime. Changes stream to the new cluster while the old one keeps serving traffic, so cutover becomes a short switch. The source is still a PostgreSQL cluster, so the MySQL data has to be loaded there first. Confirm which objects your version replicates and how sequences are handled at switchover, then rehearse the switch on a copy.
Third-party MySQL loaders
Third-party extraction and conversion tools read MySQL directly and write into PostgreSQL, so this is the only group of options here that starts from MySQL. Choose a loader only after you check its documentation for the MySQL versions it supports and for how it captures changes made during the copy. Then prove it on a copy of production data, including type mappings, character sets and row counts, before the cutover plan depends on it. Ask the maintainer what happens to changes made after the initial load.
How drivers, authentication, failover and backups change after cutover
After cutover, the application tier is where most surprises appear, so treat driver and authentication changes as release gates. Replace the MySQL connectors with PostgreSQL drivers and run the full test suite against PostgreSQL before traffic moves, watching identity columns, identifier quoting and implicit type conversions. On authentication, set password_encryption to scram-sha-256, use scram-sha-256 as the method in pg_hba.conf, and reset each application role's password after the move so it is stored as a SCRAM verifier. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so any MD5 setup carried over is a finding. If you add PgBouncer for pooling, start from version 1.26.1, released on October 14, 2026, which includes security fixes, and confirm which pooling mode your stack can run, since transaction pooling restricts session state such as session-level SET values and advisory locks.
PostgreSQL does not detect a failed primary or notify standbys on its own, and automatic failover needs external tools. Choose that tooling before cutover, because it sets your failover design and the skills your team must hold. On virtual machines, Patroni, which is MIT licensed and runs PostgreSQL 9.3 to 18, uses etcd, Consul, ZooKeeper or Kubernetes as its distributed configuration store for leader election (Patroni documentation). On Kubernetes, CloudNativePG, an Apache-2.0 CNCF Sandbox operator, uses the Kubernetes API server for failover without external tools. Whichever you choose, test failover before go-live: stop the primary under production-like load, confirm promotion, confirm the application reconnects through its endpoint, and confirm the former primary cannot accept writes after it rejoins.
Backups change shape as well. MySQL Enterprise Backup, which provides hot backups, belongs to the paid MySQL Enterprise Edition, so confirm what your current backup job depends on before you rebuild it on PostgreSQL. Point-in-time recovery combines a base backup with archived WAL files. Set up WAL archiving and base backups before the first production write, store both away from the primary, and record the recovery window you need against your recovery point and retention requirements. pg_basebackup can also take incremental backups, which pg_combinebackup reconstructs at restore time, so decide whether your tooling needs that. Then restore a copy to a separate host, replay WAL to a chosen timestamp, and check row counts and key application queries against known values (PostgreSQL continuous archiving documentation). A backup that has never been restored is unverified, so schedule the restore test as a recurring control.
Migrating from MySQL to PostgreSQL step by step, with a parallel run before cutover
This sequence moves a MySQL workload to PostgreSQL with each stage tested before the next begins. It ends with a reconciled parallel run, a cutover with a defined rollback path and a documented decision to retire MySQL, so the switch rests on evidence.
Inventory schemas, routines and MySQL-specific SQL
Your team and DeployOpen list every schema, table, view, stored procedure, trigger and event, along with the MySQL-specific SQL that application code relies on. The inventory also records driver and connector versions, MySQL Enterprise features in use (such as hot backups, Transparent Data Encryption or Enterprise Audit), the backup and high availability layout, and write volume per table. Each item is tagged as mapping cleanly, needing a rewrite or needing a decision. Each Enterprise feature needs a replacement or an approved decision to drop it. Done means the application and database owners have signed off on the inventory.
Convert schema and application code
The team converts tables, keys, indexes and data types into PostgreSQL definitions, then rewrites MySQL-specific SQL, quoting, auto-increment columns and procedural code that PostgreSQL handles differently. DeployOpen can run the converted code against the application test suite and document each behavior change, such as stricter type handling or identifier case folding. The converted schema is kept in version control so every change is reviewable. Done means the application test suite passes against PostgreSQL and each behavior change is logged and approved by the application owner.
Pilot the migration on a non-critical database
Pick one database with low business risk and a named owner, then run the full sequence on it: convert, load, sync, test and roll back. The pilot shows which drivers, ORMs and reports behave differently under PostgreSQL before any production system is touched. Record the error counts and each manual fix so the production plan is built from observed results. Done means the pilot database runs on PostgreSQL with its application tests passing and a rollback rehearsal completed.
Build the PostgreSQL target environment
Install a supported PostgreSQL major version, such as 18, which is supported until November 14, 2030. Version 14 reaches end of support on November 12, 2026, so do not choose it. Configure high availability with Patroni on virtual machines or CloudNativePG on Kubernetes, since PostgreSQL does not detect a failed primary by itself. Add continuous archiving for point-in-time recovery, PgBouncer 1.26.1 or later for pooling, and SCRAM for password authentication, which replaces the deprecated MD5 method. Done means a restore from a base backup and archived WAL reaches a chosen point in time, and a forced failover completes in a test.
Run the initial load and change sync
Load a full copy of each database into PostgreSQL, then keep it current by replaying changes from MySQL until the two can be compared. Logical replication is a PostgreSQL feature, so the MySQL change feed needs a tool that the team confirms during the pilot. Compare row counts and checksums table by table after each load, and fix type or encoding mismatches before sync continues. Done means every table matches its source on counts and checksums and replication lag stays within the threshold in the written scope.
Reconcile results in a parallel run
MySQL stays the system of record while selected read queries and business reports run on PostgreSQL and their results are compared with MySQL output. Each difference is traced to a cause: either a conversion defect to fix or an expected behavior change to document and approve. Reconciliation covers row-level samples and the totals that finance, operations and compliance teams rely on. Done means the reconciliation log has no unexplained differences for the agreed window and each accepted difference carries a named owner's sign-off.
Cut over with a write freeze
Freeze writes on MySQL, wait for replication lag to reach zero, then point application connections or PgBouncer at PostgreSQL. Before the freeze, a named go or no-go review checks the restore evidence, the reconciliation log, monitoring, the on-call roster and the written rollback path. The rollback path is set before cutover: if no reverse replication exists, the team records in advance how writes made after cutover would be recovered. Done means smoke tests pass on PostgreSQL, the freeze is lifted and the cutover record is signed.
Decommission MySQL after verified restores
Keep MySQL in read-only form for the retention window set in the written scope, and keep its last verified backup set with it. Restore PostgreSQL backups into a separate environment and check the data, because only a restore proves a backup works. When the window closes, disable MySQL backup jobs, remove application and admin access, and cancel any MySQL support contracts. Keep the inventory, reconciliation log and cutover record as evidence. Done means the decommission record lists the restore verification results and confirms that MySQL access has been removed.
How the migration phases and the go or no-go decisions connect
The flow starts at Inventory and moves through Convert schema and code, a Pilot, the target build, Load and sync, and a Parallel run in which both databases handle the same work. At the Results reconciled decision, a no sends the team back to schema and code conversion, and a yes opens Cutover. The go or no-go check is the key hand-off: a failed check routes to a rollback that keeps the MySQL source in service, while a passed check leads to Operate on PostgreSQL and, later, decommissioning MySQL. Confirm the reconciliation results and the go or no-go criteria in writing before cutover starts.
The phase sequence, reconciliation loop and go or no-go gate for the migration.
What drives the effort of migrating from MySQL to PostgreSQL
This table lists the drivers of a MySQL to PostgreSQL move, what raises and lowers each one, and what to request in a quote. Read each row against your own schema, application code and uptime targets, since one feature can be trivial in one estate and costly in another. The PostgreSQL License carries no license fee, so the cost sits in people, testing, infrastructure and any MySQL Enterprise subscription being retired, and much of the effort recurs in testing and operations after cutover.
| Driver | What raises the effort | What lowers it | What to ask for in a quote |
|---|---|---|---|
| MySQL-specific SQL and functions | Heavy use of MySQL-only syntax, storage engine clauses, GROUP_CONCAT, date functions and implicit type coercion that PostgreSQL does not apply. | Standard SQL in the codebase, a query inventory with converted tests, and a short list of MySQL-only functions with agreed replacements. | Scan results counting MySQL-specific statements, and effort per query family with the test approach for each. |
| Stored routines and triggers | Business logic held in many procedures and triggers written in MySQL's procedural dialect, each needing a line-by-line rewrite. | Logic moved to the application layer, or a small set of routines with tested PL/pgSQL equivalents. | Count of routines and triggers, a rewrite plan for each, and who signs off the behavior tests. |
| Application drivers and ORM layers | Drivers, ORM dialect settings and raw SQL spread across many services, each needing a driver change and retest. | An ORM with mature PostgreSQL support, one data access layer, and current drivers for each language in use. | Which services change, which driver versions are tested, and whether connection pooling such as PgBouncer is in scope. |
| Enterprise features in use | MySQL Enterprise features such as Transparent Data Encryption, Enterprise Audit, Enterprise Backup or Thread Pool, each needing a replacement or a documented decision to drop it. | Confirming which Enterprise features are enabled today, and deciding early which controls the target design must keep. | A written mapping from each enabled Enterprise feature to its PostgreSQL control, with the evidence your auditors will expect. |
| High availability topology | Group Replication or InnoDB Cluster with MySQL Router, moved to Patroni or CloudNativePG, changes failover, client routing and backup design. | A simple single-cluster layout, and an early decision between VM-based Patroni and Kubernetes-based CloudNativePG. | Failover and switchover tests on the target topology, and the configuration store or Kubernetes setup the quote assumes. |
| Data volume and write rate | Large tables and sustained write rates lengthen the initial load, the change capture window and the catch-up time before cutover. | Archiving or purging data before the move, and a sync method proven at production write rates. | Measured data size and peak write rate per schema, and the test load used to prove catch-up time. |
| Depth of parallel run and reconciliation | Full row-level reconciliation, dual running and output comparison over a long period, across many tables and services. | Checksum-based checks for stable tables, with deeper reconciliation limited to financial, identity and regulated data. | Reconciliation method, accepted tolerance for differences, parallel run length and who approves the cutover criteria. |
| Team skills and access to change windows | Few staff who run PostgreSQL in production, and limited approved windows for cutover, rollback and post-move fixes. | Trained operators, rehearsed runbooks, and agreed change windows that cover rollback as well as cutover. | Named roles and skills in scope, the number of rehearsals planned, and the change windows the plan assumes, confirmed with your change board. |
Risks when migrating from MySQL to PostgreSQL and how to prevent them
Six risks recur in MySQL to PostgreSQL projects, and most stay hidden until production traffic exposes them. Each card names one risk, the step that prevents it and the team that should own that step. The common thread is that migration tests usually confirm that data moves, not that the operating model, connection layer, backups and license position still hold after cutover.
Silent SQL behavior differences
MySQL and PostgreSQL accept much of the same SQL but differ in details such as identifier case handling, implicit type conversion, GROUP BY rules and how invalid dates are treated. These differences often return wrong results without raising an error, so they can reach reports or billing before anyone notices. Run the application's queries against both databases in a test suite, and reconcile row counts and checksums in parallel during the overlap period. Owner: application engineering lead, with the data team signing off the reconciliation.
No automatic failover after cutover
PostgreSQL supports hot standby servers and both synchronous and asynchronous replication, but it does not detect a failed primary or promote a standby on its own. The team must select and operate an external failover tool. Test failover on the target cluster by stopping the primary and observing promotion, client reconnection and any lost writes under the chosen replication mode. MySQL teams using Group Replication with automated failover should not assume the same behavior carries over. Owner: platform or database operations team.
PostgreSQL failover docsClient authentication breaks at SCRAM
PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, and older client drivers may still expect MD5 or a different method. Authentication failures often appear only in production if the test environment used trust rules or different credentials. Inventory every client driver version and connection string, and confirm each one negotiates SCRAM. Then check the pg_hba.conf rules in the target environment before cutover. Owner: application teams, with the database administrator approving the authentication rules.
Restores that were never tested
A backup that has never been restored is an assumption, not a recovery plan. PostgreSQL point-in-time recovery needs a base backup and the archived WAL files that follow it, and incremental backups need pg_combinebackup at restore time. Restore into a separate environment, recover to a chosen point in time and run the reconciliation checks against the restored data. Record how long the restore takes, because that figure becomes the recovery expectation the business owner must accept. Owner: database administrator, with the operations lead accepting the result.
Continuous archiving docsRollback path undefined at cutover
After writes land in PostgreSQL, returning to MySQL requires either reverse replication or a defined window in which the MySQL system stays current. Confirm whether the chosen migration tool supports reverse sync. If it does not, write the rollback window down in advance, including the point after which rolling back means losing data and who makes that call. Rehearse the rollback in staging with the same steps used for the forward cutover. Owner: migration lead, with the application's business owner signing the window before cutover day.
License and feature assumptions unreviewed
PostgreSQL is released under the PostgreSQL License, a permissive license similar to BSD and MIT. MySQL Community Edition is GPL licensed, but Enterprise Backup, Thread Pool, Transparent Data Encryption, Enterprise Firewall and Enterprise Audit belong to MySQL Enterprise Edition. List every MySQL Enterprise feature the application or operations team depends on. Each one needs a PostgreSQL equivalent, a third-party tool or an accepted gap, and legal and procurement should review the license terms before the decision is final. Owner: CIO or procurement, with legal review.
MySQL Enterprise EditionWhat buyers ask before hiring help to move from MySQL to PostgreSQL
What drives the cost of moving from MySQL to PostgreSQL?
The main cost drivers are how much MySQL-specific behavior your applications depend on, how many databases and environments are in scope, and how much data must move. Schema and SQL conversion, stored procedures, triggers, views, application query changes, data movement and testing are one-time work, priced within the written scope. Recurring costs sit mostly after cutover: running PostgreSQL, backups, failover tooling and any ongoing support or retainer. The PostgreSQL License is a permissive open source license, so the database itself carries no license fee. MySQL Enterprise features such as Enterprise Backup, Enterprise Audit and Transparent Data Encryption have no direct equivalent in the database, so you need to decide what replaces them, which can add tooling cost. Ask for a quote that itemizes each database and application, states assumptions about data volume and code changes, names who tests and signs off, and marks which items recur after handover.
How long does a MySQL to PostgreSQL migration take?
The timeline comes from the agreed written scope, so no single duration applies to every move. The scope sets the databases and applications covered, the environments, the test cycles, whether a parallel run is included, and the cutover dates. The biggest drivers are the number of schemas and applications, how much logic lives inside the database, the data size, how quickly change windows and application owners can approve test results, and how many rounds of fixes testing produces. Ask for milestones with the client input each one needs, the dates that depend on your approvals, and what happens to the schedule if an assumption changes, such as a new application joining scope or a data set much larger than the initial review suggested. Fixed-scope engagements make these dependencies explicit before work starts.
What does our team need to provide for the migration?
The work needs four things from your side: access to the schema, representative test data, agreed change windows and named application owners. Schema access lets the team map tables, data types, keys, stored routines and SQL that will need conversion. Test data should reflect production-like volumes and edge cases, and any masking or copying of personal data must follow your data handling policy. Change windows set when cutover and rollback can happen. Application owners decide whether changed query results, sort orders or error behavior are acceptable for their services. Name a database or platform contact who can approve access and infrastructure changes. In the scope document, ask who provides each item, by which date, and what slips if one is missing, so the dependency is visible before the schedule is set.
Can our in-house team handle the MySQL to PostgreSQL move alone?
Yes, an in-house team can do the migration if it already knows both engines and owns the application SQL. The migration work is mostly schema conversion, data movement, query changes and testing. The caveat is operations after cutover. High availability and backup testing need experienced operators. PostgreSQL does not detect a failed primary by itself, so a failover manager such as Patroni on virtual machines or CloudNativePG on Kubernetes must be designed, configured and tested. Point-in-time recovery depends on a base backup plus archived WAL files, and a backup is only proven by restores that the team has actually practiced. Ask whether your staff have run PostgreSQL failover and restore drills before. If they have not, scope those tasks explicitly, through training, a partner-led build with handover, or an ongoing retainer.
Can MySQL keep running during a parallel run?
Yes, MySQL can keep running alongside PostgreSQL during a parallel run, but the design decides whether that works for your workload. Define which system is the source of truth during the run, whether writes go to one side only, how the two copies are compared, and how quickly you can return to MySQL if PostgreSQL shows a problem. The synchronization method depends on the data movement tool chosen in the scope. Schema changes and sequence values often need separate handling, so confirm that against the chosen tool before relying on it. Ask for the parallel run design in writing: the owner of writes, the reconciliation checks, the rollback trigger and the length of the run agreed with application owners. Keep MySQL's own high availability and backup routines running during the period too, so the fallback path stays usable.
Which PostgreSQL major version should we target for migration?
Target a version that will still be supported for the years you plan to run it, and confirm that your drivers, extensions and failover tooling support it. PostgreSQL 18 is supported through November 14, 2030, and PostgreSQL 17 through November 8, 2029. PostgreSQL 16 is supported through November 9, 2028, while PostgreSQL 14 support ended on November 12, 2026, so it is not a viable target for a new cutover. The PostgreSQL project releases a new major version about once a year and supports each one for five years after its initial release. Patroni documents support for PostgreSQL 9.3 through 18, so check the failover tool version against your target before committing. Ask the scope to name the target version, the minor release cadence you will apply, and the date you plan to start the next major upgrade.
Does PostgreSQL replace MySQL Group Replication failover?
No, PostgreSQL does not replace MySQL Group Replication failover by itself. MySQL Community Edition includes InnoDB Cluster and Group Replication with automated failover, so teams coming from MySQL may expect failover to be built in. PostgreSQL offers hot standby servers that serve read-only queries, plus synchronous and asynchronous replication, but it does not include software that detects a primary failure and notifies or promotes a standby. Automatic failover therefore needs an external tool. Patroni is one option on virtual machines and uses a distributed configuration store such as etcd, Consul, ZooKeeper or Kubernetes. CloudNativePG is one option on Kubernetes and handles failover through the Kubernetes API. Either way, client connection routing and tested failover drills must be designed too. Ask which tool, configuration store and routing method the scope includes, and what failover test results you will receive at handover.
How DeployOpen scopes, delivers and supports a MySQL to PostgreSQL move
DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. For a MySQL to PostgreSQL move, that means the work runs in your cloud accounts, data centers or air-gapped network, with the schema, data, application and cutover decisions agreed in writing before work starts. Most engagements are fixed-scope, and ongoing support is available as a retainer.
How we scope
- The written scope lists which MySQL schemas, tables, stored procedures, triggers and views move, and which are retired.
- Scope also records application queries, connectors and authentication paths that depend on MySQL-specific behavior.
- Confirm data volume, replication topology and downtime window in the quote, since they drive effort.
How we build
- Schema conversion maps data types, auto-increment keys, sequences and identifier quoting, then tests the result.
- Test plans replay representative application workloads on both databases and compare results, including SQL mode and collation differences.
- Bulk load and change capture approaches are chosen during scoping against your downtime window and rehearsed before cutover.
How we hand over
- Documentation covers the converted schema, connection settings, runbooks and the rollback path your team will operate.
- Handover includes a walkthrough of the migration scripts, validation queries and the PostgreSQL configuration applied.
- Confirm in the quote who receives the scripts, documents and runbooks at handover.
How we support
- Post-cutover support can cover monitoring, fixes for migration defects and planned upgrades under a retainer.
- Target a supported major version; PostgreSQL 18 support runs to November 14, 2030.
- Ask whether retainer scope covers security testing of the new database tier and the timing of its retests.

