Re: popcount - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: popcount
Date
Msg-id d33d668b-bf70-126d-9ca3-ad5a50488091@enterprisedb.com
Whole thread Raw
In response to Re: popcount  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: popcount  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2021-01-18 16:34, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
>> [ assorted nits ]
> 
> At the level of bikeshedding ... I quite dislike using the name "popcount"
> for these functions.  I'm aware that some C compilers provide primitives
> of that name, but I wouldn't expect a SQL programmer to know that;
> without that context the name seems pretty random and unintuitive.
> Moreover, it invites confusion with SQL's use of "pop" to abbreviate
> "population" in the statistical aggregates, such as var_pop().

I was thinking about that too, but according to 
<https://en.wikipedia.org/wiki/Hamming_weight>, popcount is an accepted 
high-level term, with "pop" also standing for "population".



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Is it worth accepting multiple CRLs?
Next
From: Peter Eisentraut
Date:
Subject: Re: Change default of checkpoint_completion_target