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 <[email protected]> Co-authored-by: Michael Paquier <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a5523123430f39ba26a0d0250fbe10a396ab0703 Modified Files -------------- src/backend/statistics/mvdistinct.c | 85 ----------------------------- src/backend/utils/adt/Makefile | 1 + src/backend/utils/adt/meson.build | 1 + src/backend/utils/adt/pg_ndistinct.c | 102 +++++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 85 deletions(-)
