import .dump to psql code example
Example 1: how to take database dump in postgresql
pg_dump dbname > outfile
Example 2: populate db from command line postgres
\i 'path/to/file.sql'
pg_dump dbname > outfile
\i 'path/to/file.sql'