Amazon RDS for PostgreSQL vs MySQL: which database fits your workload
RDS for PostgreSQL fits PostgreSQL workloads where AWS should run failover and backups, while self-hosted MySQL fits applications already built on MySQL that your team can operate. Three questions decide the choice, in this order: which engine your applications use, who will operate the database day to day, and where the data must physically and contractually live. If a renewal notice or bill review brought you here, answer these before comparing line items, because the answers determine which costs you can actually avoid.
The engine comes first because it is the hardest variable to change. Your application's SQL, drivers, stored procedures, triggers and extensions were written for one engine. Self-hosted MySQL keeps the connectors, stored procedures, triggers and views your applications already use. On the operating side, RDS does not provide host access or SSH and restricts certain system procedures and tables, so inventory every extension, custom function and parameter setting your applications depend on, and check each one against the Amazon RDS for PostgreSQL documentation. If MySQL is the answer, the operating question becomes whether your team can run InnoDB Cluster or Group Replication with MySQL Router and MySQL Shell, which Community Edition includes, and who owns backups, since hot backups come with Enterprise Backup in the paid Enterprise Edition.
Data location is the third question. RDS for PostgreSQL is an AWS-hosted service, and AWS documents that it can be used to build HIPAA-compliant applications storing PHI under a Business Associate Agreement and that it holds FedRAMP High authorization in the AWS GovCloud (US) Regions. Self-hosted MySQL Community Edition, available under the GPL, can run on your servers, in your data centers or on air-gapped networks, which matters when a regulator or contract names the physical location. Confirm with your compliance team which evidence your auditor will accept, because DeployOpen prepares controls and evidence but does not issue attestations. Last, treat an engine change as an application project. Moving between PostgreSQL and MySQL means rewriting queries, reviewing data types and sequences, retesting every extension-dependent feature and rebuilding the failover runbook, and the data copy with its cutover date is only the final step.
Which option fits each scenario
This table maps six common scenarios to the option that fits each one, with the condition that makes that advantage matter. Read each row against your own engine, operating model and data location, because the answer changes when any one of them changes. The main takeaway is that RDS fits best for managed operations and AWS compliance scope, while self-hosting fits best for host access, plugins and data location.
| Scenario | Better fit | When the advantage matters |
|---|---|---|
| Existing PostgreSQL application | Amazon RDS for PostgreSQL | Matters when your extensions and roles already work on RDS and you want to keep application changes minimal. |
| Existing MySQL application | Self-hosted MySQL Community Edition | Matters when the app relies on MySQL-specific SQL or drivers that a PostgreSQL move would require rewriting. |
| Team wants AWS to run failover and backups | Amazon RDS for PostgreSQL | Matters when you lack database administration staff; Multi-AZ offers one standby or two readable standbys across three Availability Zones. |
| Team needs host access or unsupported server plugins | Self-hosted MySQL or PostgreSQL | Matters when you need SSH, OS-level tuning or a plugin RDS does not offer. Confirm each plugin against the current RDS list. |
| Regulated workload needs an AWS compliance position | Amazon RDS for PostgreSQL (HIPAA under a BAA; FedRAMP High P-ATO in GovCloud) | Matters when your framework accepts AWS's own evidence; confirm the service is in scope. |
| Data must stay in your data center or air-gapped network | Self-hosted MySQL or PostgreSQL | Matters when policy bars databases outside your infrastructure. Community lacks 24x7 Oracle support, which Enterprise adds. |
Where the data lives and who can reach the host on RDS for PostgreSQL
Each card covers one place where Amazon RDS for PostgreSQL decides where data sits, who can reach the host and which controls you inherit. Self-hosted MySQL moves those decisions to your own team, so each card also states what changes and what to confirm before a move.
Data location and hosting
RDS runs your database in the AWS Regions and Availability Zones you select, on infrastructure AWS operates. Self-hosted MySQL Community Edition runs wherever you install it, including your own data centers, a private cloud or an air-gapped network. Check where primary data, standbys, snapshots and backups are stored today, and whether your residency rules cover each copy. Confirm the same locations for the self-hosted target, including any off-site backup copies.
Host operating system access
AWS documents that RDS does not provide host access to DB instances and does not allow Telnet or SSH access, so OS-level troubleshooting and file inspection happen only through what AWS exposes. A self-hosted MySQL server gives your team root or sudo on the host, which allows custom monitoring agents, OS hardening and direct inspection of the data directory. It also makes those hosts a larger surface to patch and monitor. Confirm who holds host credentials, how those sessions are logged and which access path operators use.
Amazon RDS docsAdmin and privileged procedures
AWS documents that RDS restricts access to certain system procedures and tables that require advanced privileges, which keeps some server-level functions outside the customer's reach. On self-hosted MySQL Community Edition, your DBAs have the full administrative surface, including server configuration and privilege grants, but you must design the role model, change control and audit trail yourself. MySQL Enterprise Edition adds Enterprise Audit and external authentication modules as paid options. Confirm which administrative functions your teams need and whether Community tooling covers them.
Encryption and key handling
Encryption at rest and key custody differ by platform, so confirm each one separately. On RDS, confirm which encryption at rest and key management options your configuration uses and who can administer those keys. On MySQL Community Edition, Transparent Data Encryption is listed under MySQL Enterprise Edition, so at-rest protection depends on volume or disk encryption and an external key process that you run. On both sides, confirm TLS for client connections, certificate ownership and key rotation.
Compliance position and evidence
AWS documents that RDS for PostgreSQL can store PHI in HIPAA-compliant applications under a Business Associate Agreement with AWS, and that it holds a FedRAMP High P-ATO in the AWS GovCloud (US) Regions. With self-hosted MySQL, your organization owns the evidence for every layer, including the host, backups and key handling. An independent auditor or certification body decides the outcome, and DeployOpen prepares the controls and evidence for that review. Confirm whether your contracts or regulators require a BAA or an authorization, and which layer each one covers.
Lifecycle and upgrade control
RDS Extended Support lets a database run a major engine version past the end of standard support for an additional cost, for up to 3 years, after which RDS automatically upgrades the major version. MySQL LTS releases receive 5 years of premier support and 3 years of extended support under the Oracle Lifetime Support Policy, while Innovation releases are supported only until the next Innovation release. With self-hosted MySQL, you choose the release track and set the upgrade calendar, but your team carries the upgrade testing. Confirm the release track and support contract you plan to use before any move.
Extended Support docsHow Amazon RDS for PostgreSQL and self-hosted MySQL compare on capabilities
This table sets Amazon RDS for PostgreSQL against self-hosted MySQL on the capabilities that usually drive a database decision. Read each row as what the managed service provides and what you run yourself, and treat any cell that says to confirm as an open question for AWS or Oracle. The main takeaway is that RDS gives you managed high availability and backups with no host access, while self-hosted MySQL gives you more control over hosts, platforms and edition choices, at the cost of running them.
| Capability | Amazon RDS for PostgreSQL | Self-hosted MySQL |
|---|---|---|
| Engine and licensing | AWS-managed PostgreSQL engine. Confirm engine license terms and version support with AWS. | MySQL Community Edition under the GPL, freely downloadable from mysql.com. |
| High availability | Multi-AZ with one standby in another Availability Zone, or two readable standbys across three Availability Zones. | InnoDB Cluster and Group Replication with automated failover, plus MySQL Router. You design and run the hosts and zones. |
| Backups and recovery | Managed backup features run by AWS. Confirm retention, point-in-time recovery and restore options in the RDS documentation. | Enterprise Backup for hot backups in Enterprise Edition. Community backup tooling is yours to choose and test. |
| Replication | Native publication and subscription from version 10.4, plus pglogical, test_decoding and wal2json. Enabling needs rds_superuser, rds_replication and a reboot. | Built-in replication included in Community Edition, alongside Group Replication for automated failover. |
| Connectors and stored procedures | Confirm driver and procedural language support for your application stack in the RDS documentation. | ODBC, JDBC and .NET connectors, plus stored procedures, triggers and views. |
| Platforms | Runs only inside AWS. No host access, SSH or Telnet to DB instances. | More than 20 platforms, including Linux, Unix, Mac and Windows, on infrastructure you choose. |
| Editions and support | One managed service. Extended Support bills per vCPU-hour for major versions past standard support, for up to 3 years. | Community Edition is freely downloadable. Enterprise Edition adds Transparent Data Encryption, Enterprise Audit and 24x7 Oracle support. |
| Release tracks | Major versions follow the RDS standard and Extended Support calendar. Confirm dates in AWS documentation. | LTS releases get 5 years premier and 3 years extended support. Innovation releases last until the next one. |
| Compliance attestations | AWS documents HIPAA use under a Business Associate Agreement and a FedRAMP High P-ATO in GovCloud (US). Confirm current scope with AWS. | Confirm current certifications and their scope with Oracle before relying on them. |
Which MySQL edition changes the operating model
MySQL Community Edition is the freely downloadable build of MySQL under the GPL, and it covers the high availability, routing and administration stack that most self-hosted teams start with. It fits when availability and replication are the main needs, when your team will select and run its own backup and encryption tooling, and when licensing cost should not depend on an Enterprise subscription. The edition's value depends on operating these components well, so plan the work before you go live.
- InnoDB Cluster and Group Replication: Group Replication provides automated failover, and InnoDB Cluster packages it with MySQL Shell and MySQL Router. Your team still designs the node count, quorum behavior and failover tests for its own environment.
- MySQL Router and MySQL Shell: Router sends application connections to the current primary, and Shell handles cluster administration from the command line. Applications need retry logic that survives a failover without manual changes.
- Replication and Performance Schema: replication serves read replicas and reporting copies, and Performance Schema records query and wait instrumentation inside the server. Confirm the replication mode you need before you deploy.
- Workbench: a graphical client for design, queries and administration. Workstation access, client versions and credentials belong in your access standards.
- Backup ownership: Enterprise Backup is not part of this edition, so you select, schedule and test the backup method yourself. Measure restore time against your recovery objectives, not only backup success.
Before you commit, confirm the release track (8.4 LTS, 9.7.2 LTS or the Innovation track) and its support dates under the Oracle Lifetime Support Policy, since Innovation releases are supported only until the next Innovation release.
MySQL Enterprise Edition is Oracle's commercial edition, and it adds the features that auditors and security teams usually ask about first. It matters when hot backups, encryption at rest, audit logging, SQL-level firewalling or contracted support hours appear as written requirements in your control set. Use the product page as the starting point for scope, then get the terms in writing before you design around them.
- Enterprise Backup: provides hot backups, so the database keeps serving traffic while a backup runs. Ask Oracle how it handles point-in-time recovery and how your restore tests will prove the recovery objectives are met.
- Transparent Data Encryption: encrypts data at rest. Key storage, rotation and access remain your decisions, so plan the key management service before you finalize the license.
- Enterprise Audit and Enterprise Firewall: audit logs record database activity, and the firewall filters SQL statements against allowed patterns. Map each log and rule to a control in your evidence set before you rely on it.
- Thread Pool: manages connection handling under high concurrency, which matters for applications that open many short connections. Test it with your own workload before production use.
- 24x7 Oracle support: a vendor escalation path for production incidents, under the terms in your Oracle agreement. Confirm severity levels and response commitments in writing.
Ask Oracle for Enterprise terms and pricing in writing, and map each feature to a named requirement, because the license changes who you call and how your backup, encryption and audit evidence is produced.
What drives the cost of RDS for PostgreSQL and self-hosted MySQL
The recurring bill on Amazon RDS for PostgreSQL is built from several meters, and the instance is the largest: the instance class you choose, billed by the hour, sets the baseline for every other line. Multi-AZ adds to it. The pricing page describes either one standby in another Availability Zone or two readable standbys across three Availability Zones, and each standby is capacity you pay for, so confirm which layout you run and what it bills. Storage, backup storage and data transfer out of AWS are separate meters that grow with your data and traffic. Build a monthly estimate with one line per meter, so a change to instance class, Multi-AZ mode or storage size shows up where it belongs before the renewal lands.
Lifecycle is the charge most likely to surprise you at renewal. RDS Extended Support lets a database keep running a major engine version past the end of standard support for an additional cost, for up to 3 years, after which RDS upgrades the major version automatically. The published example is PostgreSQL 12 in US East (Ohio): the AWS pricing page lists $0.100 per vCPU-hour in years 1 and 2 (March 1, 2025 to February 28, 2027) and $0.200 per vCPU-hour from March 1, 2027. Because the charge scales with vCPU count, a larger instance on an expired major version costs more every hour, and the rate doubles on a fixed date. Inventory the major version of every instance, including replicas and test copies, and set the upgrade date before the rate changes. The upgrade engineering is a one-time cost you pay on RDS or on your own servers.
On self-hosted MySQL, the cost moves to infrastructure and people. MySQL Community Edition is freely downloadable under the GPL, so the software carries no license fee. You pay instead for the servers or virtual machines, their storage, backup tooling, monitoring and the database administration time to run them. Backup is the line to scope first: Enterprise Backup, which provides hot backups, is part of MySQL Enterprise Edition, so on Community Edition confirm that your chosen method meets your recovery target and test restores regularly. An Enterprise subscription is a recurring charge that adds that tool, Transparent Data Encryption, Enterprise Audit and 24x7 Oracle support. Design, migration and testing are one-time costs, while upgrades recur, because Innovation releases are supported only until the next Innovation release. If you hire DeployOpen, the fixed-scope engagement is agreed in writing before work starts, so the one-time part is known up front, and retainers cover later upgrades and testing.
Which engine fits your applications and data?
The path starts with the engine your applications already use, because that choice decides which branch applies. For PostgreSQL, first ask whether AWS should operate the database. If it should, check whether the team needs host access or server-side plugins, since RDS for PostgreSQL provides no host access and limits some advanced privileges. Then check whether the data must stay on your own infrastructure. Where the answers point to self-hosted PostgreSQL, or the MySQL answers are unclear, end with a check with the application owner and compliance team. Confirm each plugin and extension need against the vendor documentation before you commit.
Decision path from current engine to one of three outcomes.
What moving from RDS for PostgreSQL to MySQL involves
Moving from RDS for PostgreSQL to MySQL is an application migration as well as a data move, because SQL dialect, data types and routines change with the engine. The sequence below starts with an inventory of what the application depends on and ends with a cutover that keeps a rollback path open. Each step has a check that must pass before the next one starts.
Inventory SQL, routines and extensions
The application team and the database administrator list every query source, ORM mapping, stored function, trigger, view, sequence and PostgreSQL extension the application uses. Each item receives a decision: keep, rewrite for MySQL or drop. For each extension, confirm whether MySQL Community Edition offers an equivalent feature or whether the application must change. The step closes when both teams sign off the inventory and every item has a recorded decision.
Map data types and rewrite SQL
Engineers translate the PostgreSQL schema into MySQL data definitions and rewrite the statements that depend on PostgreSQL behavior. Typical work includes sequences and identity columns, array, JSON and range types, upsert syntax, boolean and timestamp handling, and identifier quoting and case sensitivity rules. Stored procedures, triggers and views are rewritten in MySQL's routine language after review. The step closes when the rewritten schema loads into a test MySQL instance and the application's unit tests pass against it.
Select connectors and test the application
The team chooses the MySQL connector that matches the application's language: ODBC, JDBC or .NET, all provided with MySQL Community Edition. The driver version must match the server release, so confirm it against the MySQL Community Server download page, which lists current LTS and Innovation releases. Consider an LTS track for production. Run integration tests covering transactions, isolation behavior, error codes, connection pooling and timeouts. The step closes when those tests pass on the chosen MySQL version and driver under production-like load.
Move data and validate counts and constraints
Data moves with a cross-engine tool that the reader must confirm, because the RDS logical replication facts cover PostgreSQL subscribers, not MySQL targets. Load each table, then compare row counts per table, checksums on key columns and samples of rows against the source. Verify primary keys, unique and foreign key constraints, NOT NULL rules and auto-increment values before anyone writes to the new database. The step closes with a reconciliation report showing no unexplained differences, signed off by the data owner.
Run both systems in parallel
Both databases run side by side for a period the team sets in advance, with RDS remaining the system of record. Copied or shadow traffic exercises MySQL with real query patterns, and results are compared for correctness and latency. If writes continue during this period, confirm with the tool vendor how changes stay in sync from RDS to MySQL. The step closes when outputs match on agreed test cases and performance on MySQL meets the targets written in the migration plan.
Cut over connections with a rollback plan
Writes are paused, the final sync runs, and application connection strings or DNS entries switch to MySQL in a planned window. The team monitors errors, latency and data checks, and keeps the RDS instance intact. The rollback plan names the trigger conditions, the person who decides, and the steps to point the application back to RDS, including how writes made on MySQL are carried back or formally accepted as loss. The step closes when the rollback has been rehearsed and the application runs on MySQL with no open data discrepancies.
Questions buyers ask before they choose MySQL or RDS for PostgreSQL
What are the cost drivers for MySQL compared with RDS for PostgreSQL?
On RDS for PostgreSQL, the main cost drivers are instance hours, Multi-AZ standbys, storage and IOPS, backups, data transfer and any Extended Support for an old major version. A Multi-AZ deployment can add one standby in another Availability Zone or two readable standbys across three, and each standby is billed. Extended Support is charged per vCPU-hour. The AWS RDS for PostgreSQL pricing page lists PostgreSQL 12 at $0.100 per vCPU-hour in US East (Ohio) for years 1 and 2, rising to $0.200 from March 1, 2027. MySQL Community Edition is freely downloadable under the GPL, so its cost sits in servers or cloud instances, storage, backup storage, monitoring and the administration time your team spends. Enterprise Edition is a paid product that adds features such as Enterprise Backup and Transparent Data Encryption, along with 24x7 Oracle support, so confirm its price directly with Oracle. Ask any quote to separate hardware, licensing, support and staff time.
How long does a migration off RDS for PostgreSQL to MySQL take?
The time depends on scope, so no duration can be stated without it. The main drivers are database size and the cutover window the business accepts, because data must be copied and kept in sync before the switch. Schema conversion usually takes more effort than the data copy. PostgreSQL-specific data types, extensions, functions, sequences and procedural code each need a MySQL equivalent or a redesign, and application SQL must be tested against MySQL. The number of applications connecting, and how many of them build their own queries, adds test effort. Count the RDS-specific features and extensions the system relies on before estimating. Ask for a written scope that lists the schemas, applications, extensions and cutover window, along with a test plan and exit criteria, before agreeing any timeline.
What does a migration need from our internal team?
The team needs an owner for each application's SQL and data model, a database engineer who can design the MySQL schema and tune InnoDB, and an operations owner for the servers, backups, patching and monitoring that RDS handled for you. RDS does not provide host access, SSH or Telnet, so your team will take on the operating system, storage layout and upgrade calendar, and will need the skills to run them. Security and network staff must define how the database is reached, how credentials are stored, and how encryption and audit logs are handled. Someone must approve the cutover runbook and the rollback path. Much of the work is testing that end users never see, so plan staff time for it. Ask any partner for a responsibility matrix that names who performs each task, so gaps appear before the project starts.
Can we run this migration ourselves without a partner?
Yes, if your team already runs production databases and covers the skills described above, since MySQL and PostgreSQL are both public, documented engines. The questions are capacity and risk. A first migration involves schema rework, cutover rehearsals and failover testing that a team may not run often, so a mistake can cost more than outside help. An outside partner can work under a fixed scope, with deliverables and timelines agreed in writing before work starts. DeployOpen plans, implements, hardens, backs up and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks, and can take on the migration within a written scope. Whichever route you choose, ask for a rehearsal on a non-production copy and a documented rollback plan before cutover.
Does MySQL offer failover comparable to RDS Multi-AZ?
MySQL Community Edition includes Group Replication with automated failover, and InnoDB Cluster combines it with MySQL Router and MySQL Shell, so the mechanism exists in the free edition. The difference is who operates it. With RDS Multi-AZ, AWS runs the standby and the failover path, and you choose the standby layout. With MySQL, you design the node count, place members across Availability Zones, set quorum rules, configure the router and test failover yourself. Confirm the cross-zone latency your application can tolerate, how the router redirects connections after a switch, and how the application handles a dropped connection during failover. Ask for a failover test run with your own workload, and document the recovery steps and the person responsible for each one.
Should we choose the MySQL LTS or Innovation release line?
For a database that must stay stable for years, choose an LTS series unless you need a specific feature from Innovation. LTS releases follow the Oracle Lifetime Support Policy, with 5 years of premier support and 3 years of extended support. Innovation releases are supported only until the next Innovation release, so you must plan an upgrade each time one ships. The MySQL Community Server download page currently lists 26.7.0 as Innovation, and lists 9.7.2 LTS, 8.4.11 LTS and 8.0.46. Features are added or removed only in the first release of an LTS series, such as 8.4.0, and later point releases carry only necessary fixes, which keeps the line predictable. Before choosing, confirm which series your drivers, frameworks and backup tools support. The MySQL releases section of the 8.4 reference manual explains the policy.
Can RDS for PostgreSQL logical replication feed a MySQL target?
Not directly through PostgreSQL's native publication and subscription, which is designed for PostgreSQL subscribers. RDS for PostgreSQL supports native logical replication from version 10.4, the pglogical extension, and the test_decoding and wal2json output plugins for logical decoding. A MySQL target would need a consumer that reads those change streams and writes them into MySQL. That means custom work or a third-party tool, and you must verify its support for your data types. Turning on logical replication requires the rds_superuser and rds_replication roles, setting the static rds.logical_replication parameter to 1, and rebooting the DB instance, so schedule that outage in advance. Confirm how the consumer maps numeric, text, JSON, array and timestamp types, and how it handles deletes and schema changes. Read the AWS logical replication documentation before choosing a path.
How DeployOpen helps evaluate, implement or migrate a MySQL or PostgreSQL platform
DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Amazon RDS for PostgreSQL vs MySQL, that means evaluating both engines against your workload, your extensions and your compliance requirements before any move, then running the chosen platform in your infrastructure with written scope and evidence for your assessors.
How we scope
- The written scope names your current RDS engine, version, Multi-AZ setup, read replicas and backup retention.
- It also covers the target engine and release track, including MySQL LTS or Innovation, and the extensions in use.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we build
- We deploy the chosen engine in your infrastructure with access control and audit logging configured.
- For PostgreSQL, we check that every extension your workload uses can be installed and licensed on the self-hosted server.
- For MySQL, we test Group Replication or InnoDB Cluster failover, MySQL Router and backups against your recovery targets.
How we hand over
- Handover includes runbooks for backups, restores, upgrades and failover, written for your operations team.
- Documentation covers configuration, access model, audit logging and data handling, so your compliance team can review it.
- Cutover follows a plan agreed in the written scope, with a rollback path defined before the move.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Innovation releases are supported only until the next Innovation release, so that track needs a steady upgrade schedule.
- Where a team has no in-house DBA, ask whether ongoing monitoring and on-call coverage are in the retainer.

