restore postregsql with .gz code example Example: populate db from command line postgres \i 'path/to/file.sql'