Catalogue / codepen-2022-postgres-migration

CodePen, a team of nine, moved its main relational database from MySQL 5.6 to PostgreSQL 13.3 with about a minute of read-only mode

CodePen. Main relational database.

Organisation
CodePen
Evidence
Reported from production
Source
351: Moving to PostgreSQL from MySQL

CodePen blog (CodePen Radio), published 2022-01-20 (A podcast episode with a transcript; the speakers say the move was done some time before recording and do not date it.)

Records

Decision#d1

Replace MySQL 5.6 with PostgreSQL instead of upgrading to MySQL 8

Decision#d2

Fold search and analytics into PostgreSQL instead of running a separate store for each

Decision#d3

Copy and sync with a managed migration service, then cut over behind a brief read-only flag and a parallel web fleet

Decision#d4

Rehearse the move locally, then 10 to 15 times on a staging copy of production, before touching production

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.