Re: Multidimensional Histograms

From: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
To: Alexander Cheshev <alex(dot)cheshev(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Multidimensional Histograms
Date: 2023-12-28 14:24:59
Message-ID: e665a0c8-4a5c-4345-2234-4487138a0d6f@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12/27/23 22:19, Tomas Vondra wrote:
> Hello Alexander,
>
> We actually had histograms in the early patches adding multivariate
> statistics [1]. We however ended up removing histograms and only kept
> the simpler types, for a couple reasons.
>
> It might be worth going through the discussion - I'm sure one of the
> reasons was we needed to limit the scope of the patch, and histograms
> were much more complex and possibly less useful compared to the other
> statistics types.
>
> ...

FWIW I did not intend to reject the idea of adding multi-dimensional
histograms, but rather to provide some insight into the history of the
past attempt, and also point some weaknesses of the algorithm described
in the 1988 paper. If you choose to work on this, I can do a review etc.

regards

--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2023-12-28 15:00:00 Re: broken master regress tests
Previous Message Ranier Vilela 2023-12-28 12:57:54 Tidy fill hstv array (src/backend/access/heap/pruneheap.c)