pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use multi-variate MCV lists to estimate ScalarArrayOpExpr
Date: Sat, 14 Mar 2020 15:15:43 +0000
Message-ID: <E1jD8Vr-0007rw-Qa@gemulon.postgresql.org> (raw)

Use multi-variate MCV lists to estimate ScalarArrayOpExpr

Commit 8f321bd16c added support for estimating ScalarArrayOpExpr clauses
(IN/ANY) clauses using functional dependencies. There's no good reason
not to support estimation of these clauses using multi-variate MCV lists
too, so this commits implements that. That makes the behavior consistent
and MCV lists can estimate all variants (ANY/ALL, inequalities, ...).

Author: Tomas Vondra
Review: Dean Rasheed
Discussion: https://www.postgresql.org/message-id/flat/13902317.Eha0YfKkKy%40pierred-pdoc

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e83daa7e331e0718bb254ab685f2ed95df423554

Modified Files
--------------
src/backend/statistics/extended_stats.c          |  66 +++++++++++++-
src/backend/statistics/mcv.c                     | 111 ++++++++++++++++++++++-
src/include/statistics/extended_stats_internal.h |   4 +-
src/test/regress/expected/stats_ext.out          |  60 ++++++++++++
src/test/regress/sql/stats_ext.sql               |  20 ++++
5 files changed, 252 insertions(+), 9 deletions(-)



Message-ID: <E1jD8Vr-0007rw-Qa@gemulon.postgresql.org>
Permalink:  ../E1jD8Vr-0007rw-Qa@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jD8Vr-0007rw-Qa@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: tomas.vondra@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use multi-variate MCV lists to estimate ScalarArrayOpExpr
  In-Reply-To: <E1jD8Vr-0007rw-Qa@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