From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Mark Dilger <hornschnorter(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Code cleanup patch submission for extended_stats.c |
Date: | 2017-11-29 03:20:39 |
Message-ID: | 20171129032039.po2eaenyvlkfpise@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Mark Dilger wrote:
>
> > On Nov 25, 2017, at 2:05 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >
> > Mark Dilger <hornschnorter(at)gmail(dot)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.
Pushed, thanks.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-11-29 03:29:33 | Re: [HACKERS] Refactoring identifier checks to consistently use strcmp |
Previous Message | Alvaro Herrera | 2017-11-29 03:05:50 | Re: PG10.1 autovac killed building extended stats |