Re: Generate pg_stat_get_xact*() functions with Macros - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Generate pg_stat_get_xact*() functions with Macros
Date
Msg-id ZCE6X6nsjkaDwz3o@paquier.xyz
Whole thread Raw
In response to Re: Generate pg_stat_get_xact*() functions with Macros  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Responses Re: Generate pg_stat_get_xact*() functions with Macros
List pgsql-hackers
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.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Support logical replication of DDLs
Next
From: "Drouvot, Bertrand"
Date:
Subject: Re: Generate pg_stat_get_xact*() functions with Macros