Re: popcount
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: David Fetter <david@fetter.org>, Daniel Verite <daniel@manitou-mail.org>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>,
Vik Fearing <vik.fearing@2ndquadrant.com>
Date: 2021-01-11T14:50:54Z
Lists: pgsql-hackers
On 2020-12-30 17:41, David Fetter wrote: >> The input may have more than 2 billion bits set to 1. The biggest possible >> result should be 8 billion for bytea (1 GB with all bits set to 1). >> So shouldn't this function return an int8? > It does now, and thanks for looking at this. The documentation still reflects the previous int4 return type (in two different spellings, too).
Commits
-
Add bit_count SQL function
- a6715af1e72d 14.0 landed