diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-01-19 17:40:15 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-01-19 17:40:15 -0300 |
commit | 948c97958bf37adb2a9c2d6d92c255abfc7499ba (patch) | |
tree | e32489c56c51f7f580b36d161e07d3e4313af537 /src/include/lib/hyperloglog.h | |
parent | 9ff60273e35cad6e9d3a4adf59d5c2455afe9d9e (diff) | |
download | postgresql-948c97958bf37adb2a9c2d6d92c255abfc7499ba.tar.gz postgresql-948c97958bf37adb2a9c2d6d92c255abfc7499ba.zip |
Add two HyperLogLog functions
New functions initHyperLogLogError() and freeHyperLogLog() simplify
using this module from elsewhere.
Author: Tomáš Vondra
Review: Peter Geoghegan
Diffstat (limited to 'src/include/lib/hyperloglog.h')
-rw-r--r-- | src/include/lib/hyperloglog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/lib/hyperloglog.h b/src/include/lib/hyperloglog.h index 5a1d4d356aa..b999b3056a6 100644 --- a/src/include/lib/hyperloglog.h +++ b/src/include/lib/hyperloglog.h @@ -60,8 +60,10 @@ typedef struct hyperLogLogState } hyperLogLogState; extern void initHyperLogLog(hyperLogLogState *cState, uint8 bwidth); +extern void initHyperLogLogError(hyperLogLogState *cState, double error); extern void addHyperLogLog(hyperLogLogState *cState, uint32 hash); extern double estimateHyperLogLog(hyperLogLogState *cState); extern void mergeHyperLogLog(hyperLogLogState *cState, const hyperLogLogState *oState); +extern void freeHyperLogLog(hyperLogLogState *cState); #endif /* HYPERLOGLOG_H */ |