Re: Should we add timing output to pg_upgrade?

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Should we add timing output to pg_upgrade?
Date: 2026-12-01 15:46:23
Message-ID: aw7rz0acyI-olMIr@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 01, 2026 at 09:09:25AM -0600, Nathan Bossart wrote:
> On Tue, Dec 01, 2026 at 02:56:57PM +1300, David Rowley wrote:
>> Does it look ok? Or better ideas for time formats? Or objections?
>
> One drawback of this approach is that not every lengthy task has its own
> status line. I vaguely recall that certain things get added to lines that
> have no obvious connection. It might be worth adding more progress output
> to cover those. I'll see if I can find what I'm remembering...

I was thinking of this note from 2024 [0]. get_db_rel_and_slot_infos()
doesn't have its own status line, so with 'ts -i' its time lands on
whatever line is printed next. With the patch, that time isn't reported at
all.

[0] https://postgr.es/m/ZnL0jvUvl0SDtMCD%40nathan

--
nathan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-12-01 15:52:40 Re: EXPLAIN ANALYZE CREATE TABLE AS EXECUTE runs non-SELECT prepared statements
Previous Message Heikki Linnakangas 2026-12-01 15:29:42 Re: psql single-step mode woes