postgresql/src
Michael Paquier f68cd847fa injection_points: Add some fixed-numbered statistics
Like 75534436a4, this acts mainly as a template to show what can be
achieved with fixed-numbered stats (like WAL, bgwriter, etc.) with the
pluggable cumulative statistics APIs introduced in 7949d95945.

Fixed-numbered stats are defined in their own file, named
injection_stats_fixed.c, separated entirely from the variable-numbered
case in injection_stats.c.  This is mainly for clarity as having both
examples in the same file would be confusing.

Note that this commit uses the helper routines added in 2eff9e678d.
The stats stored track globally the number of times injection points
have been attached, detached or run.  Two more fields should be added
later for the number of times a point has been cached or loaded, but
what's here is enough as a template.

More TAP tests are added, providing coverage for fixed-numbered custom
stats.

Author: Michael Paquier
Reviewed-by: Dmitry Dolgov, Bertrand Drouvot
Discussion: https://postgr.es/m/Zmqm9j5EO0I4W8dx@paquier.xyz
2024-08-05 12:29:22 +09:00
..
backend Introduce pluggable APIs for Cumulative Statistics 2024-08-04 19:41:24 +09:00
bin Fix NLS file reference in pg_createsubscriber 2024-08-02 12:05:38 -04:00
common Convert some extern variables to static, Windows code 2024-08-01 13:28:32 +02:00
fe_utils Fix PL/pgSQL's handling of integer ranges containing underscores. 2024-06-04 11:48:01 +01:00
include Add helper routines to retrieve data for custom fixed-numbered pgstats 2024-08-05 11:43:33 +09:00
interfaces Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
makefiles Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
pl Include bison header files into implementation files 2024-08-02 10:25:11 +02:00
port Add port/ replacement for strsep() 2024-07-22 09:50:30 +02:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test injection_points: Add some fixed-numbered statistics 2024-08-05 12:29:22 +09:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools injection_points: Add some fixed-numbered statistics 2024-08-05 12:29:22 +09:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00