Tom Lane wrote:
shared_buffers is unlikely to impact index build time noticeably in recent PG releases. maintenance_work_mem would affect it a lot, though. What setting were you using for that?
Also, i tried upping maintenance_work_mem to 65536 and it didn't make much difference (maybe 10% faster for the "normal" cases). Upping the shared_buffers *definitely* makes the bad cases worse though, but I agree I don't see why...
Regards, Gary.