Here is a list of recommended parameters for memory management in PostgreSQL. You should take into account mainly the following parameters.
shared_buffers
work_mem
maintenance_work_mem
effective_cache_size
About shared_buffers:
About work_mem, this parameter can cause a huge speed-up if set properly, however it can use that amount of memory per planning node. Here are some recommendations to set it up.
About maintenance_work_mem, here are some recommandations:
About effective_cache_size, here are some guidelines.
Unless otherwise specified, the contents of this website are (C)Copyright Michael Paquier 2010-2025 and are licensed for use under CC BY-NC-ND 4.0.