As per title I need to import, but PG backups is giving me strict Postgres SQL that doesn’t work with MySQL, also with a non-specified encoding that I guess is UTF-16. Using db:pull takes ages and errors before finishing.
I’d appreciate any suggestion. Thanks.
As per title I need to import, but PG backups is giving me strict
Share
Set up PostgreSQL locally, use PG backups to copy the data from Heroku to your local machine, then
pg_restoreto import it into your new local PostgreSQL. Then you can copy it from PostgreSQL to MySQL or SQLite locally without having to worry about timeouts. Or, since you’d have a functional PostgreSQL installation after that, just start developing on top of PostgreSQL so that your development stack better matches your deployment stack; developing and deploying on the same database is a good idea.You’re probably getting binary dumps (i.e.
pg_dump -Fc) from Heroku, that would explain why the dump looks like some sort of UTF-16 nonsense.You can use the pgbackups addon to export the database dump