PostgreSQL for advanced features, MySQL for simplicity.
PostgreSQL¶
- JSONB, arrays, hstore
- CTE, window functions
- PostGIS
- Better concurrent writes
MySQL¶
- Simpler setup
- Faster simple reads
- Shared hosting support
- WordPress/LAMP
Performance¶
- Simple SELECT: MySQL slightly faster
- Complex queries: PostgreSQL better
- Concurrent writes: PostgreSQL
PostgreSQL for New Projects¶
MySQL for WordPress/LAMP.
mysqlpostgresqlcomparison