Yes, this is legacy, I will fix it. We had lots of inactive connections but right now we use pgbouncer for this. When the workload is normal we have some kind of 80-120 backends. Less than 10 of them are in active state. Having problem with locks we get lots of sessions (sometimes more than 1000 of them are in active state). According to vmstat the number of context switches is not so big (less than 20k), so I don't think it is the main reason. Yes, it can aggravate the problem, but imho not create it. I don't understand the correlation of shared buffers size and synchronous_commit. Could you please explain your statement? 12.02.2014, в 23:37, Ilya Kosmodemiansky <hydrobiont@xxxxxxxxx> написал(а):
-- Vladimir |