also, is effective_cache_size set to a reasonable value?
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных