Importing a SQL dump in postgresTue 29 November 2011
I always keep forgetting how to import a SQL dump into postgres and found it always hard to find the right documentation. So I thought lets share it:
psql -d dbname -U username -f dumpfile.sql
This should also work with files created by pgdump.