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: Improve test coverage for multi-column MCV lists
Date: Sat, 14 Mar 2020 22:10:24 +0000
Message-ID: <E1jDEzA-0001qe-08@gemulon.postgresql.org> (raw)

Improve test coverage for multi-column MCV lists

The regression tests for extended statistics were not testing a couple
of important cases for the MCV lists:

  * IS NOT NULL clauses - We did have queries with IS NULL clauses, but
    not the negative case.

  * clauses with variable on the right - All the clauses had the Var on
    the left, i.e. (Var op Const), so this adds (Const op Var) too.

  * columns with fixed-length types passed by reference - All columns
    were using either by-value or varlena types, so add a test with
    UUID columns too. This matters for (de)serialization.

  * NULL-only dimension - When one of the columns contains only NULL
    values, we treat it a a special case during (de)serialization.

  * arrays containing NULL - When the constant parameter contains NULL
    value, we need to handle it correctly during estimation, for all
    IN, ANY and ALL clauses.

Discussion: https://www.postgresql.org/message-id/flat/20200113230008.g67iyk4cs3xbnjju@development
Author: Tomas Vondra

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/stats_ext.out | 237 +++++++++++++++++++++++++++++++-
src/test/regress/sql/stats_ext.sql      | 102 +++++++++++++-
2 files changed, 335 insertions(+), 4 deletions(-)



Message-ID: <E1jDEzA-0001qe-08@gemulon.postgresql.org>
Permalink:  ../E1jDEzA-0001qe-08@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jDEzA-0001qe-08@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: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Improve test coverage for multi-column MCV lists
  In-Reply-To: <E1jDEzA-0001qe-08@gemulon.postgresql.org>
  References: <E1jDEzA-0001qe-08@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