pg import dump code example Example 1: psql load dump psql databasename < data_base_dump Example 2: populate db from command line postgres \i 'path/to/file.sql'