Re: popcount - Mailing list pgsql-hackers

From David Fetter
Subject Re: popcount
Date
Msg-id 20210111161354.GA8721@fetter.org
Whole thread Raw
In response to Re: popcount  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: popcount  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
On Mon, Jan 11, 2021 at 03:50:54PM +0100, Peter Eisentraut wrote:
> 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).

Thanks for looking this over!

Please find attached the next version with corrected documentation.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade test for binary compatibility of core data types
Next
From: Tom Lane
Date:
Subject: Re: Add Nullif case for eval_const_expressions_mutator