I created a dump with
sudo -u postgres pg_dump dbname > dbexport.psql
I tried to restore that dump with,
sudo -u postgres pg_restore -d dbname < dbexport.psql
I got an error in doing the restore
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.
After that I enter the following
sudo -i -u postgres psqldbname < dbexport.psql
I don't see anything, just a new line waiting for more input. There's no error message and all the tables are still empty. Just a new line waiting for more input. Can someone tell me what I'm doing wrong?