Re: Generate pg_stat_get_* functions with Macros - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: Generate pg_stat_get_* functions with Macros
Date
Msg-id CALj2ACVCO6jt1=OAffL2nxYKwa52Yu3Z-vdjcqJnoGabokvFYw@mail.gmail.com
Whole thread Raw
In response to Re: Generate pg_stat_get_* functions with Macros  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Generate pg_stat_get_* functions with Macros  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Tue, Dec 6, 2022 at 8:15 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> On Mon, Dec 05, 2022 at 05:16:56PM +0900, Michael Paquier wrote:
> > Doing that in a separate patch is fine by me.
>
> I have applied the patch for the tab entries, then could not resist
> poking at the parts for the db entries.  This leads to more reduction
> than the other one actually, as of:
>  4 files changed, 169 insertions(+), 447 deletions(-)
>
> Like the previous one, the functions have the same names and the field
> names are updated to fit in the picture.  Thoughts?

Likewise, is there a plan to add function generation macros for
pg_stat_get_bgwriter, pg_stat_get_xact and so on?

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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: move some bitmapset.c macros to bitmapset.h
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures