Run psql file from terminal
psql -U username -d database -a -f file.psql
Run psql file from terminal
psql -U username -d database -a -f file.psql