diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-12-07 09:11:48 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-12-07 09:11:48 +0900 |
commit | 8018ffbf5895ee16a1fd7117c4526b47ac42332e (patch) | |
tree | 07c7c6139a2c909da53488f9799d17541ec83c41 /src/backend/executor/nodeModifyTable.c | |
parent | 79f7c482f6745959f7aeea4f7386fceb02ad8889 (diff) | |
download | postgresql-8018ffbf5895ee16a1fd7117c4526b47ac42332e.tar.gz postgresql-8018ffbf5895ee16a1fd7117c4526b47ac42332e.zip |
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions