Understanding checkpoint messages

Checkpoints are essential to data integrity as well as performance. The further checkpoints are apart, the better performance usually is. In PostgreSQL, the default configuration is usually fairly conservative and checkpoints are therefore comparatively fast. If a lot of data is changed in the database core at the same time, it can be that PostgreSQL tells us that it considers checkpoints to be too frequent. The LOG file will show the following entries:

LOG: checkpoints are occurring too frequently (2 seconds apart)LOG: checkpoints are occurring too frequently (3 seconds apart)

During heavy writing due to dump/restore or due to some other large operation, PostgreSQL might notice that the configuration parameters ...

Get Mastering PostgreSQL 10 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.