Re: popcount

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: David Fetter <david@fetter.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, John Naylor <john.naylor@enterprisedb.com>
Date: 2021-03-23T09:51:08Z
Lists: pgsql-hackers
On 21.03.21 02:31, David Fetter wrote:
>> I have now read the entire internet on what a suitable name for this
>> function could be.  I think the emerging winner is BIT_COUNT(), which
>> already exists in MySQL, and also in Python (int.bit_count()) and Java
>> (Integer.bitCount()).
> 
> Thanks for doing this tedious work. Please find attached the next
> version of the patch.

committing, with some polishing



Commits

  1. Add bit_count SQL function