Oh, and in addition to my previous message, you should use tools like vmstat, iostat and top to get an idea of what your server is doing. What kind of drive subsystem do you have? What kind of raid controller? etc...
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных