]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add test with multirange type for pg_restore_attribute_stats()
authorMichael Paquier <michael@paquier.xyz>
Mon, 26 Jan 2026 04:32:17 +0000 (13:32 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 26 Jan 2026 04:32:17 +0000 (13:32 +0900)
commitd4504d6f60e07516cd3b0311054e6f8e74496281
tree7e12d7c708837bd925c4c477d475df01fb7cf203
parentc100340729b66dc46d4f9d68a794957bf2c468d8
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
src/test/regress/expected/stats_import.out
src/test/regress/sql/stats_import.sql