LOAD DATABASE FROM mysql://root:rootpass@127.0.0.1:33306/inspection2 INTO postgresql:///slot WITH include drop, create tables, create indexes, reset sequences, workers = 4, concurrency = 1, multiple readers per thread, rows per range = 50000, preserve index names SET MySQL PARAMETERS net_read_timeout = '600', net_write_timeout = '600' SET PostgreSQL PARAMETERS maintenance_work_mem to '512MB', work_mem to '64MB' CAST type tinyint to smallint drop typemod, type smallint to smallint drop typemod, type mediumint to integer drop typemod, type integer to integer drop typemod, type int to integer drop typemod, type bigint to bigint drop typemod, type tinyint when unsigned to smallint drop typemod, type smallint when unsigned to integer drop typemod, type mediumint when unsigned to integer drop typemod, type int when unsigned to bigint drop typemod, type bigint when unsigned to bigint drop typemod, type float to real drop typemod, type double to float8 drop typemod, type year to integer drop typemod, type set to text drop typemod, type enum to text drop typemod, type datetime to timestamptz drop default drop not null using zero-dates-to-null, type timestamp to timestamptz drop default drop not null using zero-dates-to-null, type date to date drop default drop not null using zero-dates-to-null BEFORE LOAD DO $$ CREATE EXTENSION IF NOT EXISTS pg_trgm; $$, $$ CREATE EXTENSION IF NOT EXISTS unaccent; $$;