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: Add test for pg_restore_extended_stats() with multiranges
Date: Thu, 29 Jan 2026 03:38:51 +0000
Message-ID: <E1vlIrr-003JBK-03@gemulon.postgresql.org> (raw)

Add test for pg_restore_extended_stats() with multiranges

The restore of extended statistics has some paths dedicated to
multirange types and expressions for all the stats kinds supported, and
we did not have coverage for the case where an extended stats object
uses a multirange attribute with or without an expression.

Extracted from a larger patch by the same author, with a couple of
tweaks from me regarding the format of the output generated, to make it
more readable to the eye.

Author: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CADkLM=dpz3KFnqP-dgJ-zvRvtjsa8UZv8wDAQdqho=qN3kX0Zg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b7beec42ae2924f94410bded81f75f6f4eadd34

Modified Files
--------------
src/test/regress/expected/stats_import.out | 62 ++++++++++++++++++++++++++++++
src/test/regress/sql/stats_import.sql      | 41 ++++++++++++++++++++
2 files changed, 103 insertions(+)



Message-ID: <E1vlIrr-003JBK-03@gemulon.postgresql.org>
Permalink:  ../E1vlIrr-003JBK-03@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vlIrr-003JBK-03@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: Add test for pg_restore_extended_stats() with multiranges
  In-Reply-To: <E1vlIrr-003JBK-03@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