http://www.databasesoup.com/2014/09/settings-for-fast-pgrestore.html
- number of jobs (-j) should be set to two less than the number of cores you have, up to a limit of 8.
shared_buffers = 1/2 of what you'd usually set
maintenance_work_mem = 1GB-2GB -- limit should be RAM/(2*concurrency)
fsync = off
synchronous_commit = off
wal_level = minimal
full_page_writes = off
wal_buffers = 64MB
checkpoint_segments = 256 or higher -- DEPRECATED in PG 9.5 (use min_wal_size and max_wal_size instead)
max_wal_size = (3 * checkpoint_segments) * 16MB -- >= 9.5
max_wal_senders = 0
wal_keep_segments = 0
archive_mode = off
autovacuum = off
all activity logging settings disabled
Example:
shared_buffers = 64
maintenance_work_mem = 1GB
fsync = off
synchronous_commit = off
wal_level = minimal
full_page_writes = off
wal_buffers = 64MB
max_wal_size = 1024
max_wal_senders = 0
wal_keep_segments = 0
archive_mode = off
autovacuum = off