Re: Generate pg_stat_get_xact*() functions with Macros

Поиск
Список
Период
Сортировка
От Drouvot, Bertrand
Тема Re: Generate pg_stat_get_xact*() functions with Macros
Дата
Msg-id 442ba19a-6e8a-3fe3-d404-e9101dfbfcbb@gmail.com
обсуждение исходный текст
Ответ на Re: Generate pg_stat_get_xact*() functions with Macros  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Generate pg_stat_get_xact*() functions with Macros  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 3/27/23 8:40 AM, Michael Paquier wrote:
> On Mon, Mar 27, 2023 at 07:45:26AM +0200, Drouvot, Bertrand wrote:
>> Thanks! LGTM, but what about also taking care of pg_stat_get_xact_function_total_time()
>> and pg_stat_get_xact_function_self_time() while at it?
> 
> With a macro that uses INSTR_TIME_GET_MILLISEC() to cope with
> instr_time?  Why not, that's one duplication less.

Yes, something like V1 up-thread was doing. I think it can be added with your current proposal.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Generate pg_stat_get_xact*() functions with Macros
Следующее
От: Peter Smith
Дата:
Сообщение: Re: PGdoc: add missing ID attribute to create_subscription.sgml