postgresql/src/include/statistics
Michael Paquier 32e27bd320 Introduce routines to validate and free MVNDistinct and MVDependencies
These routines are useful to perform some basic validation checks on
each object structure, working currently on attribute numbers for
non-expression and expression attnums.  These checks could be extended
in the future.

Note that this code is not used yet in the tree, and that these
functions will become handy for an upcoming patch for the import of
extended statistics data.  However, they are worth their own independent
change as they are actually useful by themselves, with at least the
extension code argument in mind (or perhaps I am just feeling more
pedantic today).

Extracted from a larger patch by the same author, with many adjustments
and fixes by me.

Author: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CADkLM=dpz3KFnqP-dgJ-zvRvtjsa8UZv8wDAQdqho=qN3kX0Zg@mail.gmail.com
2026-01-15 09:36:05 +09:00
..
extended_stats_internal.h Introduce routines to validate and free MVNDistinct and MVDependencies 2026-01-15 09:36:05 +09:00
stat_utils.h Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00
statistics.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
statistics_format.h Update copyright for 2026 2026-01-01 13:24:10 -05:00