postgresql/src/backend/access
Michael Paquier 83a1a1b566 Generate pg_stat_get*() functions for tables using macros
The same code pattern is repeated 17 times for int64 counters (0 for
missing entry) and 5 times for timestamps (NULL for missing entry) on
table entries.  This code is switched to use a macro for the basic code
instead, shaving a few hundred lines of originally-duplicated code.  The
function names remain the same, but some fields of PgStat_StatTabEntry
have to be renamed to cope with the new style.

Author: Bertrand Drouvot
Reviewed-by: Nathan Bossart
Discussion: https:/postgr.es/m/20221204173207.GA2669116@nathanxps13
2022-12-06 10:46:35 +09:00
..
brin Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
common Generalize ri_RootToPartitionMap to use for non-partition children 2022-12-02 10:35:55 +01:00
gin Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
gist Standardize rmgrdesc recovery conflict XID output. 2022-11-17 14:55:08 -08:00
hash Fix memory leak for hashing with nondeterministic collations. 2022-12-01 11:49:15 -08:00
heap Generate pg_stat_get*() functions for tables using macros 2022-12-06 10:46:35 +09:00
index Check the snapshot argument of index_beginscan and family 2022-12-06 03:29:18 +03:00
nbtree Standardize rmgrdesc recovery conflict XID output. 2022-11-17 14:55:08 -08:00
rmgrdesc Standardize rmgrdesc recovery conflict XID output. 2022-11-17 14:55:08 -08:00
spgist Standardize rmgrdesc recovery conflict XID output. 2022-11-17 14:55:08 -08:00
table meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
tablesample meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
transam Add LSN location in some error messages related to WAL pages 2022-12-05 09:28:29 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00