postgresql/src/backend
Michael Paquier 8018ffbf58 Generate pg_stat_get*() functions for databases using macros
The same code pattern is repeated 21 times for int64 counters (0 for
missing entry) and 5 times for doubles (0 for missing entry) on database
entries.  This code is switched to use macros for the basic code
instead, shaving a few hundred lines of originally-duplicated code
patterns.  The function names remain the same, but some fields of
PgStat_StatDBEntry have to be renamed to cope with the new style.

This is in the same spirit as 83a1a1b.

Author: Michael Paquier
Reviewed-by: Nathan Bossart, Bertrand Drouvot
Discussion: https://postgr.es/m/Y46stlxQ2LQE20Na@paquier.xyz
2022-12-07 09:11:48 +09:00
..
access Generate pg_stat_get*() functions for tables using macros 2022-12-06 10:46:35 +09:00
backup Rename shadowed local variables 2022-10-05 21:01:41 +13:00
bootstrap Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
catalog Add 'missing_ok' argument to build_attrmap_by_name 2022-11-29 09:39:36 +01:00
commands Rework query relation permission checking 2022-12-06 16:09:24 +01:00
executor Rework query relation permission checking 2022-12-06 16:09:24 +01:00
foreign Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
jit Replace SQLValueFunction by COERCE_SQL_SYNTAX 2022-11-21 18:31:59 +09:00
lib Add doubly linked count list implementation 2022-11-02 14:06:05 +13:00
libpq Fix typo in hba.c 2022-11-26 10:14:18 +09:00
main Add workaround to make ubsan and ps_status.c compatible 2022-11-21 13:56:23 -08:00
nodes Rework query relation permission checking 2022-12-06 16:09:24 +01:00
optimizer Rework query relation permission checking 2022-12-06 16:09:24 +01:00
parser Rework query relation permission checking 2022-12-06 16:09:24 +01:00
partitioning Move PartitioPruneInfo out of plan nodes into PlannedStmt 2022-12-01 12:56:21 +01:00
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port Provide sigaction() for Windows. 2022-11-09 13:06:31 +13:00
postmaster Generate pg_stat_get*() functions for tables using macros 2022-12-06 10:46:35 +09:00
regex Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
replication Rework query relation permission checking 2022-12-06 16:09:24 +01:00
rewrite Rework query relation permission checking 2022-12-06 16:09:24 +01:00
snowball meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
statistics Stop accessing checkAsUser via RTE in some cases 2022-11-30 12:07:03 +01:00
storage Make materialized views participate in predicate locking 2022-12-01 15:41:13 +09:00
tcop Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
tsearch Add comments and a missing CHECK_FOR_INTERRUPTS in ts_headline. 2022-11-21 17:07:29 -05:00
utils Generate pg_stat_get*() functions for databases using macros 2022-12-07 09:11:48 +09:00
.gitignore
Makefile autoconf: Don't AC_SUBST() LD in configure 2022-12-01 19:03:26 -08:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00