PSQL Memory
Parameters shared_buffers: The shared_buffers parameter defines how much RAM is reserved for PostgreSQL operations. Increasing it can improve performance, especially if you increase the number of connections. PostgreSQL recommends setting shared_buffers to between 25% and 40% of the total RAM. With 128 GB of RAM, you can configure it to a value close to 32 GB or 40 GB, depending on system requirements and workload. 1 ALTER SYSTEM SET shared_buffers = '32GB'; work_mem: Defines the memory allocated for temporary operations (such as sorting and joins) per session....