Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.