pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: test_custom_stats: Add tests with read/write of auxiliary data
Date: Mon, 15 Dec 2025 00:49:36 +0000
Message-ID: <E1vUwmN-000o9Y-01@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1vUwmN-000o9Y-01@gemulon.postgresql.org>
Permalink:  ../E1vUwmN-000o9Y-01@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vUwmN-000o9Y-01@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: test_custom_stats: Add tests with read/write of auxiliary data
  In-Reply-To: <E1vUwmN-000o9Y-01@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox