Postgresql performance tuning

shape