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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: test_custom_stats: Add tests with read/write of auxiliary data
Date: 2025-12-15 00:49:36
Message-ID: E1vUwmN-000o9Y-01@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Co-authored-by: Michael Paquier <michael(at)paquier(dot)xyz>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-12-15 01:29:44 pgsql: pageinspect: use index_close() for GiST index relation
Previous Message Michael Paquier 2025-12-15 00:41:10 pgsql: Allow cumulative statistics to read/write auxiliary data from/to