diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2018-03-21 18:01:23 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2018-03-21 18:01:23 +0300 |
commit | e51a04840a1c45db101686bef0b7025d5014c74b (patch) | |
tree | 3c67461e40725d348031024c8204fd7ec87554f3 /src/bin/pgbench/pgbench.h | |
parent | 8bb3c7d347f0c74aa12beeef3599984021323e7d (diff) |
Add general purpose hasing functions to pgbench.
Hashing function is useful for simulating real-world workload in test like
WEB workload, as an example - YCSB benchmarks.
Author: Ildar Musin with minor editorization by me
Reviewed by: Fabien Coelho, me
Discussion: https://www.postgresql.org/message-id/flat/0e8bd39e-dfcd-2879-f88f-272799ad7ef2@postgrespro.ru
Diffstat (limited to 'src/bin/pgbench/pgbench.h')
-rw-r--r-- | src/bin/pgbench/pgbench.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/pgbench/pgbench.h b/src/bin/pgbench/pgbench.h index 0705ccdf0d6..6983865b925 100644 --- a/src/bin/pgbench/pgbench.h +++ b/src/bin/pgbench/pgbench.h @@ -97,7 +97,9 @@ typedef enum PgBenchFunction PGBENCH_LE, PGBENCH_LT, PGBENCH_IS, - PGBENCH_CASE + PGBENCH_CASE, + PGBENCH_HASH_FNV1A, + PGBENCH_HASH_MURMUR2 } PgBenchFunction; typedef struct PgBenchExpr PgBenchExpr; |