aboutsummaryrefslogtreecommitdiff
path: root/src/backend/lib/hyperloglog.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-04-27 10:55:32 -0400
committerRobert Haas <rhaas@postgresql.org>2016-04-27 10:55:32 -0400
commit360ca27a9b9793f3939c9f70de77c1272a110362 (patch)
treed73f5fe4475aedc51b290526d743cf9895a66744 /src/backend/lib/hyperloglog.c
parent59eb55127906b943ff155240eebc161df8edb62f (diff)
downloadpostgresql-360ca27a9b9793f3939c9f70de77c1272a110362.tar.gz
postgresql-360ca27a9b9793f3939c9f70de77c1272a110362.zip
Remove mergeHyperLogLog.
It's buggy. If somebody needs this later, they'll need to put back a non-buggy vesion of it. Discussion: CAM3SWZT-i6R9JU5YXa8MJUou2_r3LfGJZpQ9tYa1BYxfkj0=cQ@mail.gmail.com Discussion: CAM3SWZRUOLsYoTT83QgdUy9D8ehYWm_nvbrrfcOOzikiRfFY7g@mail.gmail.com Peter Geoghegan
Diffstat (limited to 'src/backend/lib/hyperloglog.c')
-rw-r--r--src/backend/lib/hyperloglog.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/backend/lib/hyperloglog.c b/src/backend/lib/hyperloglog.c
index fa7f05a2411..6d246ce77bc 100644
--- a/src/backend/lib/hyperloglog.c
+++ b/src/backend/lib/hyperloglog.c
@@ -221,28 +221,6 @@ estimateHyperLogLog(hyperLogLogState *cState)
}
/*
- * Merges the estimate from one HyperLogLog state to another, returning the
- * estimate of their union.
- *
- * The number of registers in each must match.
- */
-void
-mergeHyperLogLog(hyperLogLogState *cState, const hyperLogLogState *oState)
-{
- int r;
-
- if (cState->nRegisters != oState->nRegisters)
- elog(ERROR, "number of registers mismatch: %zu != %zu",
- cState->nRegisters, oState->nRegisters);
-
- for (r = 0; r < cState->nRegisters; ++r)
- {
- cState->hashesArr[r] = Max(cState->hashesArr[r], oState->hashesArr[r]);
- }
-}
-
-
-/*
* Worker for addHyperLogLog().
*
* Calculates the position of the first set bit in first b bits of x argument