pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move code specific to pg_ndistinct to new file
Date: Wed, 12 Nov 2025 07:36:17 +0000
Message-ID: <E1vJ5Or-006CDo-2L@gemulon.postgresql.org> (raw)

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

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(-)



Message-ID: <E1vJ5Or-006CDo-2L@gemulon.postgresql.org>
Permalink:  ../E1vJ5Or-006CDo-2L@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vJ5Or-006CDo-2L@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move code specific to pg_ndistinct to new file
  In-Reply-To: <E1vJ5Or-006CDo-2L@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox