I tried to use pgloader, but it didn't work. There were invalid data types and missing indexes I think.