yugabyte-db
yugabyte-db copied to clipboard
[YSQL] Add MCV support in CREATE STATISTICS commands
Jira Link: DB-3044
Description
PG14 CREATE STATISTICS commands support MCV also. From https://www.postgresql.org/docs/current/sql-createstatistics.html (PG14).
A multivariate statistics kind to be computed in this statistics object. Currently supported kinds are ndistinct, which enables n-distinct statistics, dependencies, which enables functional dependency statistics, and mcv which enables most-common values lists.
As we are enabling CREATE STATISTICS ( GH#7788 ) , we should add the support for MCV as well. This would require importing PG14 relevant commits.