]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add test for pg_restore_extended_stats() with multiranges
authorMichael Paquier <michael@paquier.xyz>
Thu, 29 Jan 2026 03:38:10 +0000 (12:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 29 Jan 2026 03:38:10 +0000 (12:38 +0900)
commit0b7beec42ae2924f94410bded81f75f6f4eadd34
treebc4e1fd2ec15dd988604b0b229e8d4a0b1bd3f23
parent3a98f989e8e596efb0db942ead90f64800136fac
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
src/test/regress/expected/stats_import.out
src/test/regress/sql/stats_import.sql