Add backup_type to pg_stat_progress_basebackup

From: Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Add backup_type to pg_stat_progress_basebackup
Date: 2025-07-22 08:48:35
Message-ID: CAOzEurQuzbHwTj1ehk1a+eeQDidJPyrE5s6mYumkjwjZnurhkQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

Starting with PostgreSQL 17, pg_basebackup supports incremental
backups. However, the pg_stat_progress_basebackup view doesn't
currently show the backup type (i.e., whether it's a full or
incremental backup).

Therefore, I propose adding a backup_type column to this view. While
this information is available in pg_stat_activity, the backup type is
important for monitoring the progress of pg_basebackup, and including
it directly in the progress view would be very useful.

Thoughts?

--
Best regards,
Shinya Kato
NTT OSS Center

Attachment Content-Type Size
v1-0001-Add-backup_type-to-pg_stat_progress_basebackup.patch application/octet-stream 6.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Yugo Nagata 2025-07-22 08:49:49 Re: Suggestion to add --continue-client-on-abort option to pgbench
Previous Message Masahiko Sawada 2025-07-22 08:06:52 Re: Support getrandom() for pg_strong_random() source