SqlBak Blog

How to enable WAL file summarization in PostgreSQL

Starting from version 17, PostgreSQL introduced native support for incremental backups, enabling more efficient and storage-friendly backup strategies. One of the key requirements for incremental backups is enabling WAL (Write-Ahead Log) file summarization.

This article explains how to enable WAL summarization by updating PostgreSQL configuration settings.


1. Backup the Configuration File

Before making any changes, create a backup of the original configuration file.

Default location on Windows:

C:\Program Files\PostgreSQL\17\data\postgresql.conf
Recommended backup path:
C:\Users\<YourUsername>\Desktop\postgresql.conf.backup

2. Edit postgresql.conf

Open the configuration file in any text editor (e.g., Notepad, Notepad++, or VS Code), and ensure the following setting is present:

summarize_wal = on
Save and close the file after making changes.

3. Restart the PostgreSQL Server

To apply the changes:

  1. Press Win + R, type services.msc, and press Enter

  2. Locate PostgreSQL 17 in the list of services

  3. Right-click the service and select Restart

🔄 A full restart is required for the new setting to take effect.

Leave a Comment