Skip to content

Expose the size of PGDATA when starting a base backup - #85

Merged
jackc merged 1 commit into
jackc:masterfrom
orgrim:base-backup-progress-pgdata-size
Aug 24, 2026
Merged

Expose the size of PGDATA when starting a base backup#85
jackc merged 1 commit into
jackc:masterfrom
orgrim:base-backup-progress-pgdata-size

Conversation

@orgrim

@orgrim orgrim commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

When progress is requested in a BASE_BACKUP command, the estimated size of the data directory is output in the tablespace list, which was skipped. Add it to BaseBackupResult as PgDataSize.

The patch only changes the prototype of the getTableSpaceInfo() private function and add an extra field to the BaseBackupResult, so it should be backward compatible.

When progress is requested in a BASE_BACKUP command, the estimated size
of the data directory is output in the tablespace list, which was
skipped. Add it to BaseBackupResult as PgDataSize.
@jackc

jackc commented Aug 24, 2026

Copy link
Copy Markdown
Owner

LGTM

@jackc
jackc merged commit 4ae5c49 into jackc:master Aug 24, 2026
12 checks passed
@claude claude Bot mentioned this pull request Aug 31, 2026
1 task
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.

2 participants