test_custom_stats: Add tests with read/write of auxiliary data

This commit builds upon 4ba012a8ed9c, giving an example of what can be
achieved with the new callbacks.  This provides coverage for the new
pgstats APIs, while serving as a reference template.

Note that built-in stats kinds could use them, we just don't have a
use-case there yet.

Author: Sami Imseih <[email protected]>
Co-authored-by: Michael Paquier <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Discussion: 
https://postgr.es/m/caa5rz0s9sdou+z6veojchwk+kdetktatc-ky9fq9z6bjddu...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/481783e69f144936f1ebbc3259809bee518c6c0c

Modified Files
--------------
.../test_custom_stats/t/001_custom_stats.pl        |  39 +-
.../test_custom_var_stats--1.0.sql                 |   7 +-
.../test_custom_stats/test_custom_var_stats.c      | 401 ++++++++++++++++++++-
3 files changed, 428 insertions(+), 19 deletions(-)

Reply via email to