| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Move code specific to pg_ndistinct to new file |
| Date: | 2025-11-12 07:36:17 |
| Message-ID: | E1vJ5Or-006CDo-2L@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)huinker(at)gmail(dot)com>
Co-authored-by: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://postgr.es/m/aQ2k8--a0FfwSwX9@paquier.xyz
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2025-11-12 07:53:33 | pgsql: Move code specific to pg_dependencies to new file |
| Previous Message | Fujii Masao | 2025-11-12 04:46:33 | pgsql: doc: Fix incorrect synopsis for ALTER PUBLICATION ... DROP ... |