Re: [PATCH] Add pg_lfind8_nonzero() - Mailing list pgsql-hackers

From cca5507
Subject Re: [PATCH] Add pg_lfind8_nonzero()
Date
Msg-id tencent_45A410C9A8E2351EE4D95586D6141ED7FA0A@qq.com
Whole thread Raw
In response to Re: [PATCH] Add pg_lfind8_nonzero()  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
Hi,

> Maybe you could try popcount for this?
> 
>      hasnull = (pg_popcount((char *) isnull, numberOfAttributes) > 0);

It seems that pg_popcount() cannot early return when we find a nonzero value, so I don't
think it's a good choice for this case.

--
Regards,
ChangAo Chen

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Report bytes and transactions actually sent downtream
Next
From: Tom Lane
Date:
Subject: Re: Fixing the btree_gist inet mess