pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Generate a few more functions of pgstatfuncs.c with macros
Date: Mon, 27 Mar 2023 22:36:53 +0000
Message-ID: <E1pgvSO-0002zB-GE@gemulon.postgresql.org> (raw)

Generate a few more functions of pgstatfuncs.c with macros

Two new macros are added with their respective functions switched to
use them.  These are for functions with millisecond stats, with and
without "xact" in their names (for the stats that can be tracked within
a transaction).

While on it, prefix the macro for float8 on database entries with "_MS",
as it does a us->ms conversion, based on a suggestion from Andres
Freund.

Author: Bertrand Drouvot
Discussion: https://postgr.es/m/6e2efb4f-6fd0-807e-f6bf-94207db8183a@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4efd0bf7eaebb3e3f5a3a6edd0865f6973e709a6

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 89 +++++++++++++++++--------------------
1 file changed, 41 insertions(+), 48 deletions(-)



Message-ID: <E1pgvSO-0002zB-GE@gemulon.postgresql.org>
Permalink:  ../E1pgvSO-0002zB-GE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pgvSO-0002zB-GE@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Generate a few more functions of pgstatfuncs.c with macros
  In-Reply-To: <E1pgvSO-0002zB-GE@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox