Re: [PATCH] Add pg_lfind8_nonzero()

cca5507 <cca5507@qq.com>

From: cca5507 <cca5507@qq.com>
To: Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-18T02:29:00Z
Lists: 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