Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>, Bruce Momjian
<bruce@momjian.us>, Alvaro Herrera <alvherre@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>, Mark Dilger <hornschnorter@gmail.com>,
Adrien Nayrat <adrien.nayrat@dalibo.com>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-11-26T22:51:06Z
Lists: pgsql-hackers
On 11/26/18 11:29 PM, Thomas Munro wrote: > On Mon, Sep 3, 2018 at 11:17 AM Tomas Vondra > <tomas.vondra@2ndquadrant.com> wrote: >> Attached is an updated version of the patch series, adopting a couple of >> improvements - both for MCV lists and histograms. > > Hello Tomas, > > FYI, here are a couple of warnings from GCC (I just noticed because I > turned on -Werror on cfbot so your patch turned red): > > extended_stats.c: In function ‘statext_clauselist_selectivity’: > extended_stats.c:1227:6: error: ‘other_sel’ may be used uninitialized > in this function [-Werror=maybe-uninitialized] > sel = mcv_sel + other_sel; > ^ > extended_stats.c:1091:5: note: ‘other_sel’ was declared here > other_sel, > ^ > extended_stats.c:1227:6: error: ‘mcv_sel’ may be used uninitialized in > this function [-Werror=maybe-uninitialized] > sel = mcv_sel + other_sel; > ^ > extended_stats.c:1087:5: note: ‘mcv_sel’ was declared here > mcv_sel, > ^ > Thanks, I'll fix that in the next version of the patch I'm working on. cheers -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Convert pre-existing stats_ext tests to new style
- dbb984128ebf 12.0 landed
-
Add support for multivariate MCV lists
- 7300a699502f 12.0 landed
-
Improve ANALYZE's strategy for finding MCVs.
- b5db1d93d2a6 11.0 cited
-
Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
- 5564c1181548 11.0 cited
-
Try again to fix accumulation of parallel worker instrumentation.
- 8526bcb2df76 11.0 cited
-
Adjust psql \d query to avoid use of @> operator.
- 471d55859c11 11.0 cited
-
Message style fixes
- 821fb8cdbf70 11.0 cited
-
Add security checks to selectivity estimation functions
- e2d4ef8de869 10.0 cited