Upgrading/restoring a large PostgreSQL database
rausch.io
rausch.io
Also I forgot to turn things back on afterward. De-tuning your PG to make things load fast, you have to re-tune afterward!
de-index, add, re-index. but if you have enough, do more. and don't forget your underlying filesystem semantics will influence things, as the DB writes data to disk.