pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve estimation of OR clauses using multiple extended statist
Date: Tue, 08 Dec 2020 19:43:05 +0000
Message-ID: <E1kmit7-0001uI-Tv@gemulon.postgresql.org> (raw)

Improve estimation of OR clauses using multiple extended statistics.

When estimating an OR clause using multiple extended statistics
objects, treat the estimates for each set of clauses for each
statistics object as independent of one another. The overlap estimates
produced for each statistics object do not apply to clauses covered by
other statistics objects.

Dean Rasheed, reviewed by Tomas Vondra.

Discussion: https://postgr.es/m/CAEZATCW=J65GUFm50RcPv-iASnS2mTXQbr=CfBvWRVhFLJ_fWA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/88b0898fe35a5a0325fca21bd4f3ed6dffb364c1

Modified Files
--------------
src/backend/statistics/extended_stats.c | 25 +++++++++++++++++--------
src/test/regress/expected/stats_ext.out |  2 +-
2 files changed, 18 insertions(+), 9 deletions(-)



view thread (2+ messages)

Message-ID: <E1kmit7-0001uI-Tv@gemulon.postgresql.org>
Permalink:  ../E1kmit7-0001uI-Tv@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kmit7-0001uI-Tv@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: dean.a.rasheed@gmail.com
  Subject: Re: pgsql: Improve estimation of OR clauses using multiple extended statist
  In-Reply-To: <E1kmit7-0001uI-Tv@gemulon.postgresql.org>
  References: <E1kmit7-0001uI-Tv@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