Re: popcount

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: popcount
Дата
Msg-id 338981.1610984050@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: popcount  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: popcount  (David Fetter <david@fetter.org>)
Re: popcount  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> [ assorted nits ]

At the level of bikeshedding ... I quite dislike using the name "popcount"
for these functions.  I'm aware that some C compilers provide primitives
of that name, but I wouldn't expect a SQL programmer to know that;
without that context the name seems pretty random and unintuitive.
Moreover, it invites confusion with SQL's use of "pop" to abbreviate
"population" in the statistical aggregates, such as var_pop().

Perhaps something along the lines of count_ones() or count_set_bits()
would be more apropos.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: POC: postgres_fdw insert batching
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit