Managing writes, connections, and maintenance

Now, we will look at a few other parameters that can impact performance:

The checkpoint_segments parameter was covered in Chapter 2, Server Architecture. When we increase shared_buffers, it might be necessary to increase this value too. In a busy system with a lot of changes being made to the data, a low value will result in frequent checkpoints. We can increase this number and spread out the process of writing a relatively larger volume of data at each checkpoint (resulting from fewer checkpoints) using checkpoint_completion_target. The default value of 3 is usually too low for any system with frequent writes.

We can limit the maximum number of connections allowed on the server using the max_connections ...

Get PostgreSQL for Data Architects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.