Re: add timing information to pg_upgrade

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: add timing information to pg_upgrade
Дата
Msg-id 20230728184735.GC3661419@nathanxps13
обсуждение исходный текст
Ответ на Re: add timing information to pg_upgrade  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: add timing information to pg_upgrade
Список pgsql-hackers
On Fri, Jul 28, 2023 at 10:38:14AM -0700, Nathan Bossart wrote:
> I'm okay with simply adding the time.  However, I wonder if we want to
> switch to seconds, minutes, hours, etc. if the step takes longer.  This
> would add a bit of complexity, but it would improve human readability.
> Alternatively, we could keep the code simple and machine readable by always
> using milliseconds.

... or maybe we show both like psql does.  Attached іs a new version of the
patch in which I've made use of the INSTR_TIME_* macros and enhanced the
output formatting (largely borrowed from PrintTiming() in
src/bin/psql/common.c).

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Farias de Oliveira
Дата:
Сообщение: Re: In Postgres 16 BETA, should the ParseNamespaceItem have the same index as it's RangeTableEntry?
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Eager page freeze criteria clarification