pgsql: Use pg_bitutils for HyperLogLog.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use pg_bitutils for HyperLogLog.
Date: 2020-07-30 16:16:09
Message-ID: E1k1BE1-0004QI-Ci@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use pg_bitutils for HyperLogLog.

Using pg_leftmost_one_post32() yields substantial performance benefits.

Backpatching to version 13 because HLL is used for HashAgg
improvements in 9878b643, which was also backpatched to 13.

Reviewed-by: Peter Geoghegan
Discussion: https://postgr.es/m/CAH2-WzkGvDKVDo+0YvfvZ+1CE=iCi88DCOGFF3i1hTGGaxcKPw@mail.gmail.com
Backpatch-through: 13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fd734f387d8780d9989d750942d026167de8cf3c

Modified Files
--------------
src/backend/lib/hyperloglog.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2020-07-30 16:21:39 pgsql: Use pg_bitutils for HyperLogLog.
Previous Message Michael Paquier 2020-07-30 08:00:44 pgsql: Include partitioned tables for tab completion of VACUUM in psql