Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPDOI-0000z6-5h for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 23:58:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lPDOH-00009V-2m for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 23:58:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPDOG-00009O-GI for pgsql-hackers@lists.postgresql.org; Wed, 24 Mar 2021 23:58:20 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lPDOD-0006eK-OA for pgsql-hackers@postgresql.org; Wed, 24 Mar 2021 23:58:20 +0000 Received: by fetter.org (Postfix, from userid 1001) id A276F40CB5; Thu, 25 Mar 2021 00:58:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fetter.org; s=default; t=1616630295; bh=CYYQQyBIrNbLZ9+7ngyo/kfCxgvW7lZuMP3kqlqfbRM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=3dfTjUnLrH6kIZmC/uN2Ev5Ymvs+o4OGI+/EgXMPmSLubavmTKsN3QYjIuUPNwOFg e7ge5XrBKkJ36sQ+KHt7CRYecHnoKRhuD+x38C2aMHleTFdC6rnDFJVZ3u/epXx20z r3wuycpI5hSc5Sbk9zv3kKbD2KjRH88Xnr+CjfQotObjE3sGqMh5rk8VYDsCwAB8iJ ZKL38wpMm4wHZL0TTHILGNF7VWwCefnTrmvb61ZRC9G2zhJzhf3G0MnzlNxPXa7nD/ oTrU1a4cg7cX2K/NyzqA7fqyu8GVn545+kR0k0sNmrD8tUuZG76AlWciva8oVYaoMY xlo4yTGoo3pBQ== Date: Wed, 24 Mar 2021 23:58:15 +0000 From: David Fetter To: Peter Eisentraut Cc: pgsql-hackers , John Naylor Subject: Re: popcount Message-ID: <20210324235814.GA24232@fetter.org> References: <338981.1610984050@sss.pgh.pa.us> <20210119163818.GE8721@fetter.org> <775b91fc-80fa-179d-bb20-0bf230e6db40@enterprisedb.com> <20210321013108.GF7457@fetter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 23, 2021 at 10:51:08AM +0100, Peter Eisentraut wrote: > 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 Thanks! Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate