MySQL vs PostgreSQL: Rating, Votes and Features

MySQLPostgreSQL
Categorydatabase enginedatabase engine
DeveloperOraclePostgreSQL Global Development Group
Created byMichael Widenius, David Axmark, Allan LarssonMichael Stonebraker
First release19951996
LicenseGPL-2.0PostgreSQL License
Open sourceYesYes
PricingFree with paid plansFree
Websitehttps://www.mysql.comhttps://www.postgresql.org
Written inC, C++C
Data modelRelationalRelational, Document
Storage layoutRow-orientedRow-oriented
WorkloadTransactions (OLTP)Transactions (OLTP)
Analytics architectureNot an analytics platformNot an analytics platform
Query languageSQLSQL
ACID transactionsYesYes
SchemaStrictStrict
DeploymentServer, Managed cloudServer, Managed cloud
ScalingReplicationReplication
Create, read, update, deleteCreate: fast (Quick inserts with InnoDB); Read: fast (Fast primary key and index lookups); Update: fast (In-place updates with undo logs); Delete: fast (Cheap deletes, space reused by InnoDB)Create: fast (Fast single and bulk inserts, COPY for loads); Read: fast (Rich indexes and a mature planner); Update: moderate (MVCC writes a new row version, vacuum cleans up); Delete: moderate (Rows are marked dead until vacuum reclaims them)