postgres database populate code example Example 1: fill up postgres db psql -U postgres Example 2: populate db from command line postgres \i 'path/to/file.sql'