Re: Code cleanup patch submission for extended_stats.c - Mailing list pgsql-hackers

From Mark Dilger
Subject Re: Code cleanup patch submission for extended_stats.c
Date
Msg-id 9A68FB88-5F45-4848-9926-8586E2D777D1@gmail.com
Whole thread Raw
In response to Re: Code cleanup patch submission for extended_stats.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Code cleanup patch submission for extended_stats.c  (Michael Paquier <michael.paquier@gmail.com>)
Re: Code cleanup patch submission for extended_stats.c  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
> On Nov 25, 2017, at 2:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Mark Dilger <hornschnorter@gmail.com> writes:
>> It looks to me like Alvaro introduced this in the original version of the file which
>> was created in commit 7b504eb282ca2f5104b5c00b4f05a3ef6bb1385b.  Grep'ing
>> through the code base, it seems the following would be more consistent with
>> how these initializations are handled elsewhere:
>
>>    memset(nulls, 1, sizeof(nulls));
>>    memset(replaces, 0, sizeof(replaces));
>>    memset(values, 0, sizeof(values));
>
> +1.  I'd be inclined to use "false" and "true" for the init values of
> the boolean arrays, too.

Done.

mark




Attachment

pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Next
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] PATCH: multivariate histograms and MCV lists