pgsql: test_custom_stats: Add tests with read/write of auxiliary data

Started by Michael Paquier6 months ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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 <samimseih@gmail.com>
Co-authored-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: /messages/by-id/CAA5RZ0s9SDOu+Z6veoJCHWk+kDeTktAtC-KY9fQ9Z6BJdDUirQ@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(-)