Re: multivariate statistics v14

Tomas Vondra <tomas.vondra@2ndquadrant.com>

From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Petr Jelinek <petr@2ndquadrant.com>, Tatsuo Ishii <ishii@postgresql.org>, jeff.janes@gmail.com, pgsql-hackers@postgresql.org
Date: 2016-03-26T02:02:03Z
Lists: pgsql-hackers

Attachments

On 03/25/2016 10:26 PM, Tom Lane wrote:
> Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
>> I could do that, but isn't that a bit pointless? I thought pgindent is
>> run regularly on the whole codebase, not for individual patches. Sure,
>> it'll tweak the formatting on a few places in the patch (including the
>> code discussed above, as you pointed out), but there are many other such
>> places coming from other committed patches.
>
> One point of running pgindent for yourself is to make sure you
> haven't set up any code in a way that will look horrible after
> pgindent gets done with it.

Fair point. Attached is v18 of the patch, after pgindent cleanup.

FWIW, most of the tweaks were minor things like (! x) instead of (!x) 
and so on. I also had to fix a few comments with internal formatting, 
because pgindent decided to reformat the text using tabs etc.

There are a few places where I reverted the pgindent formatting, because 
it seemed a bit too weird - the first one are the lists of function 
prototypes in common.h/mvstat.h, the second one are function calls to 
_greedy/_exhaustive methods.

None of those places would however qualify as 'horrible' in my opinion, 
and the _greedy/_exhaustive functions are in the 0006 part, so fixing 
that is not of immediate importance I think.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Commits

  1. Collect and use multi-column dependency stats

  2. Implement SortSupport for macaddr data type

  3. Implement multivariate n-distinct coefficients

  4. Generate fmgr prototypes automatically