Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a large postgres database (over 100GB) running off a server with 32Gb of RAM.

Some of the database we care much more about the performance of than other parts, so our idea is to put those tables in a separate tablespace, that can be optimised for being cached in RAM.

Is it possible to get postgres to prioritise caching one tablespace in RAM over another?

Any other suggestions?

share|improve this question

No, this is not possible. Generally, the cache algorithms are smart enough to keep the most used tables and indexes cached.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.