Re: multivariate statistics v14
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2016-03-09T17:21:42Z
Lists: pgsql-hackers
Attachments
- mvstats-segfault-fix.patch (text/x-patch) patch
Hi, On Wed, 2016-03-09 at 08:45 -0800, Jeff Janes wrote: > On Wed, Mar 9, 2016 at 7:02 AM, Tomas Vondra > <tomas.vondra@2ndquadrant.com> wrote: > > Hi, > > > > thanks for the feedback. Attached is v14 of the patch series, fixing > > most of the points you've raised. > > > Hi Tomas, > > Applied to aa09cd242fa7e3a694a31f, I still get the seg faults in make > check if I configure without --enable-cassert. Ah, after disabling asserts I can reproduce it too. And the reason why it fails is quite simple - clauselist_selectivity modifies the original list of clauses, which then confuses cost_qual_eval. Can you try if the attached patch fixes the issue? I'll need to rework a bit more of the code, but let's see if this fixes the issue on your machine too. > With --enable-cassert, it passes the regression test. I wonder how can it work with casserts and fail without them. That's kinda exactly the opposite to what I'd expect ... regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Collect and use multi-column dependency stats
- 2686ee1b7ccf 10.0 landed
-
Implement SortSupport for macaddr data type
- f90d23d0c518 10.0 cited
-
Implement multivariate n-distinct coefficients
- 7b504eb282ca 10.0 landed
-
Generate fmgr prototypes automatically
- 352a24a1f9d6 10.0 cited