SwapSQL

MySQL → PostgreSQL

Convert MySQL FLOAT and DOUBLE to PostgreSQL

Floating-point types map directly: FLOAT to real, DOUBLE to double precision. Both follow IEEE 754, so the bits survive the trip.

FLOAT / DOUBLE real / double precision

What to know

Before / after

MySQL

CREATE TABLE sensors (
  reading DOUBLE
);

PostgreSQL

CREATE TABLE sensors (
  reading double precision
);

Don't convert column-by-column — convert the whole database.

Upload a dump, get back ready-to-import SQL with this mapping (and every other one) applied.

Open the MySQL → PostgreSQL converter

See the full type mapping table or all guides.