agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Add test with multirange type for pg_restore_attribute_stats()
2+ messages / 2 participants
[nested] [flat]

* pgsql: Add test with multirange type for pg_restore_attribute_stats()
@ 2026-01-26 04:32 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2026-01-26 04:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add test with multirange type for pg_restore_attribute_stats()

This commit adds a test for pg_restore_attribute_stats() with the
injection of statistics related to a multirange type.  This case is
supported in statatt_get_type() since its introduction in ce207d2a7901,
but there was no test in the main regression test suite to check for the
case where attribute stats is restored for a multirange type, as done by
multirange_typanalyze().

Author: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://postgr.es/m/CADkLM=c3JivzHNXLt-X_JicYknRYwLTiOCHOPiKagm2_vdrFUg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d4504d6f60e07516cd3b0311054e6f8e74496281

Modified Files
--------------
src/test/regress/expected/stats_import.out | 29 ++++++++++++++++++++++++++++-
src/test/regress/sql/stats_import.sql      | 24 ++++++++++++++++++++++++
2 files changed, 52 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add test with multirange type for pg_restore_attribute_stats()
@ 2026-08-10 13:41 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Noah Misch @ 2026-08-10 13:41 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add test with multirange type for pg_restore_attribute_stats()

This commit adds a test for pg_restore_attribute_stats() with the
injection of statistics related to a multirange type.  This case is
supported in statatt_get_type() since its introduction in ce207d2a7901,
but there was no test in the main regression test suite to check for the
case where attribute stats is restored for a multirange type, as done by
multirange_typanalyze().

Note that this has been originally applied as d4504d6f60e0 in v19 and
newer branches.  This will be used for the test of a follow-up commit.

Author: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://postgr.es/m/CADkLM=c3JivzHNXLt-X_JicYknRYwLTiOCHOPiKagm2_vdrFUg@mail.gmail.com
Security: CVE-2026-16238
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8d428c6e677d05122ad2286f0e8d468bb532acb1
Author: Michael Paquier <michael@paquier.xyz>

Modified Files
--------------
src/test/regress/expected/stats_import.out | 29 ++++++++++++++++++++++++++++-
src/test/regress/sql/stats_import.sql      | 24 ++++++++++++++++++++++++
2 files changed, 52 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-08-10 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-01-26 04:32 pgsql: Add test with multirange type for pg_restore_attribute_stats() Michael Paquier <michael@paquier.xyz>
2026-08-10 13:41 pgsql: Add test with multirange type for pg_restore_attribute_stats() Noah Misch <noah@leadboat.com>

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