Thanks for the fast response! Server was completely idle except the one client (and one doing a slow update that I forgot). Updating maintenance_work_mem to 8G I see more memory now in use: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4531 ec2-user 20 0 10.1g 3.4g 1.7g R 99.8 11.4 2:02.17 postgres When restarting postgres I noticed that I had a background process trying to update the table, which might have locked it and would also explain why postgres was running at 100%. It now takes ~5min to build the index. Bill On 4/19/16 2:36 PM, Scott Mead wrote:
|