Skip to content

Turn on summarize_wal when SUMMARIZE_WAL=on (PG17+) - #74

Draft
souravbiswassanto wants to merge 1 commit into
masterfrom
pg-incremental-basebackup
Draft

souravbiswassanto wants to merge 1 commit into
masterfrom
pg-incremental-basebackup

Conversation

@souravbiswassanto

Copy link
Copy Markdown
Member

Writes summarize_wal = on into postgresql.conf when SUMMARIZE_WAL=on, in the primary and standby scripts for PostgreSQL 17 and 18.

Incremental pg_basebackup needs WAL summaries reaching back to the parent backup. Standbys summarize the WAL they replay too, so after a failover the new primary can continue the incremental chain.

The operator sets the env for archived databases on 17.11+ / 18.6+ (kubedb/postgres#960). Without the env nothing changes.

Verified on k3s: summarize_wal was on in all three pods (primary and both standbys), and an incremental backup taken right after a failover succeeded.

Incremental pg_basebackup needs WAL summaries reaching back to the
parent backup. Standbys write them too, so a promoted standby can carry
on the incremental chain.

Signed-off-by: souravbiswassanto <saurov@appscode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant