]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add routine to free MCVList
authorMichael Paquier <michael@paquier.xyz>
Tue, 20 Jan 2026 04:13:47 +0000 (13:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 20 Jan 2026 04:13:47 +0000 (13:13 +0900)
commit7ebb64c557570647e3fcf6f5f1549e882ed26489
tree455b3c0198811939b00df3050aabef6b3c1bca01
parent2e937eeb93af7539f2d65abc170d1c0369d46f12
Add routine to free MCVList

This addition is in the same spirit as 32e27bd32082 for MVNDistinct and
MVDependencies, except that we were missing a free routine for the third
type of extended statistics, MCVList.  I was not sure if we needed an
equivalent for MCVList, but after more review of the main patch set for
the import of extended statistics, it has become clear that we do.

This is introduced as its own change as this routine can be useful on
its own.  This one is a piece that has not been written by Corey
Huinker, I have just noticed it by myself on the way.

Author: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CADkLM=dpz3KFnqP-dgJ-zvRvtjsa8UZv8wDAQdqho=qN3kX0Zg@mail.gmail.com
src/backend/statistics/mcv.c
src/include/statistics/extended_stats_internal.h