10.09.2015 Views

Migrating Uber from MySQL to PostgreSQL

uber_migration_pypgday_2013

uber_migration_pypgday_2013

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Truncation<br />

Code Changes<br />

In <strong>MySQL</strong>, overflow of VARCHAR columns is not an error<br />

(it does, however, generate a “warning” which no one<br />

looks at).<br />

Tons and <strong>to</strong>ns of test cases and fixtures were generating<br />

fake data that overflowed, and I had <strong>to</strong> manually fix all<br />

of these tests. Only in one or two places were we<br />

actually truncating in production.<br />

Evan Klitzke (<strong>Uber</strong>, Inc.) <strong>Migrating</strong> <strong>Uber</strong> <strong>from</strong> <strong>MySQL</strong> <strong>to</strong> <strong>PostgreSQL</strong> March 13, 2013 36 / 59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!