If you have a lot of memory and no longer work on db, one thing that can change is shared_buffers. What shared buffers do is cache frequently used data so that it is maximized in all cases where not all databases fit in memory.
Unfortunately, this cache does not work the same as its OS cache. If your data fits easily into memory, make sure effective_cache_size is high enough and then try to reduce shared_buffers
Please note that this is not a magic bullet. The corresponding size of shared_buffers depends on how much data you have, how much space it takes, your types of requests, how much memory goes towards things like childbirth and the like. You can count on this from time to time to find a nice place for your current setup and database.
Chris travers
source share