I\'m trying to import my production Heroku database into my development machine.
My local db is PostgreSQL.
First, I\'m exporting the dump from Heroku to my
You see errors because psql tries to interpret SQL queries when you're actually giving him a compressed dump (that's what heroku uses).
While you can't read the dump, pg_restore -O latest.dump
gives you valid SQL you could pipe to psql but the easy solution is the following one :
pg_restore -O -d app_development latest.dump
Notes :
-O
because you probably don't use the random username of your remote heroku postgres db.