postgresql/src/backend/postmaster
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
..
Makefile pgstat: move pgstat.c to utils/activity. 2022-04-06 21:29:46 -07:00
autovacuum.c Generate pg_stat_get*() functions for tables using macros 2022-12-06 10:46:35 +09:00
auxprocess.c Fix non-specific error message. 2022-08-11 14:12:11 -04:00
bgworker.c Standardize format for printing PIDs 2022-10-14 08:38:53 +02:00
bgwriter.c pgstat: rename some pgstat_send_* functions to pgstat_report_*. 2022-04-06 14:08:57 -07:00
checkpointer.c Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
fork_process.c Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
interrupt.c pgstat: store statistics in shared memory. 2022-04-06 21:29:46 -07:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
pgarch.c Disallow setting archive_library and archive_command at the same time 2022-11-15 10:03:47 +01:00
postmaster.c Add the database name to the ps display of logical WAL senders 2022-11-24 16:07:59 +09:00
shell_archive.c Rework shutdown callback of archiver modules 2022-10-19 14:06:56 +09:00
startup.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
syslogger.c Use STDOUT/STDERR_FILENO in most of syslogger. 2022-07-18 17:22:11 -07:00
walwriter.c Remove redundant call to pgstat_report_wal() 2022-08-22 20:25:42 -07:00