]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move code specific to pg_ndistinct to new file
authorMichael Paquier <michael@paquier.xyz>
Wed, 12 Nov 2025 07:34:52 +0000 (16:34 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 12 Nov 2025 07:34:52 +0000 (16:34 +0900)
commita5523123430f39ba26a0d0250fbe10a396ab0703
tree25f927a4c135ffa46f49e2830fb9d428a7f018ae
parentdf53fa1c1ebf9bb3e8c17217f7cc1435107067fb
Move code specific to pg_ndistinct to new file

This new file is named pg_ndistinct.c and includes all the code directly
related to the data type pg_ndistinct, extracted from the extended
statistics code.

Some patches are under discussion to change its input and output
functions, and this separation makes the follow-up changes cleaner by
separating the logic related to the data type and the multivariate
ndistinct coefficient core logic in mvdistinct.c.

Author: Corey Huinker <corey.huinker@gmail.com>
Co-authored-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/aQ2k8--a0FfwSwX9@paquier.xyz
src/backend/statistics/mvdistinct.c
src/backend/utils/adt/Makefile
src/backend/utils/adt/meson.build
src/backend/utils/adt/pg_ndistinct.c [new file with mode: 0644]