You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOAD DATABASE FROM mysql://root:root@localhost/mydb?mytable
INTO postgresql://postgres:postgres@localhost/pgdb?public.mytable
INCLUDING ONLY TABLE NAMES MATCHING 'mytable';
Even though I'm only targeting one table, it generates the following query:
selectc.table_name, c.column_name,
c.data_type, c.column_type, c.column_default,
c.is_nullable, c.extrafrominformation_schema.columns c
joininformation_schema.tables t using(table_schema, table_name)
wherec.table_schema='mydb'andt.table_type='BASE TABLE'order by table_name, ordinal_position;
On my production system, that query takes 15 minutes, as we have a very large number of very wide tables; It would be great to add an additional where to only hit my specific table.