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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GROUP BY<br />

Code Changes<br />

In <strong>MySQL</strong> you can do this:<br />

SELECT foo, bar FROM table GROUP BY foo;<br />

According <strong>to</strong> the Postgres/SQL specification, this query<br />

is invalid since bar is not an aggregated column.<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 46 / 59

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

Saved successfully!

Ooh no, something went wrong!