Обсуждение: pgsql: test_custom_stats: Add tests with read/write of auxiliary data

Поиск
Список
Период
Сортировка

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

От
Michael Paquier
Дата:
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: https://postgr.es/m/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(-)