This is a really fast way to restore a large Postgres database by omiting the indexes and restoring them later (if necessary).
-
Dump database.
pg_dump -Fc --no-owner my_db -f ~/my_db.dump
-
Create the summary files. One for the indexes and another for everything else.
pg_restore -l ~/my_db.dump | grep -v 'INDEX public' > ~/my_db.list