I have a .sql file with a bunch of paste commands that I want to execute in my postgres database on heroku. But I do not know how to do this: -
If I had access to the postgres console, I would type the following:
psql -h localhost -d database -U username -f datafile.sql
but heroku doesn't seem to support this command. I tried using
heroku pg:psql
but this does not allow me to enter the file.
Are there any other options?
sql postgresql heroku
Byron Singh Mar 06 '13 at 1:29 2013-03-06 01:29
source share