Re: Proposal: Add backup start time to pg_stat_progress_basebackup

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rob Moore <robmoore121(at)gmail(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Proposal: Add backup start time to pg_stat_progress_basebackup
Date: 2026-01-20 03:22:28
Message-ID: CAKFQuwZiBDDJABkR2VVSKgY1H90K8c8OgLVwDxS-R9guLASyzQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Monday, January 19, 2026, Rob Moore <robmoore121(at)gmail(dot)com> wrote:
>
>
> Was backup start time intentionally omitted from pg_stat_progress_basebackup,
> or would it be okay for me or someone else to add it as a column? Or, am I
> being daft and there is another obvious way to get the start time for an
> in-progress base backup?
>
>
Not sure about base backup but the other progress reporting commands would
get that info from pg_stat_activity.query_start which can be joined to
using pid. backend_start is likely close enough for pg_basebackup if it
doesn’t recognize the replication protocol as a “command”. I haven’t
checked.

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Henson Choi 2026-01-20 03:29:14 Re: Row pattern recognition
Previous Message Tatsuo Ishii 2026-01-20 03:20:40 Re: Row pattern recognition