It just occurred to me that the documentation [0] should be updated to describe the callbacks. I will do that in the next revision.
[0] https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-ADDIN-CUSTOM-CUMULATIVE-STATISTICS -- Sami Imseih Amazon Web Services (AWS)
