-
- Downloads
pgbench: Support double constants and functions.
The new functions are pi(), random(), random_exponential(), random_gaussian(), and sqrt(). I was worried that this would be slower than before, but, if anything, it actually turns out to be slightly faster, because we now express the built-in pgbench scripts using fewer lines; each \setrandom can be merged into a subsequent \set. Fabien Coelho
Showing
- doc/src/sgml/ref/pgbench.sgml 185 additions, 98 deletionsdoc/src/sgml/ref/pgbench.sgml
- src/bin/pgbench/exprparse.y 40 additions, 3 deletionssrc/bin/pgbench/exprparse.y
- src/bin/pgbench/exprscan.l 5 additions, 0 deletionssrc/bin/pgbench/exprscan.l
- src/bin/pgbench/pgbench.c 364 additions, 86 deletionssrc/bin/pgbench/pgbench.c
- src/bin/pgbench/pgbench.h 30 additions, 5 deletionssrc/bin/pgbench/pgbench.h
Loading
Please register or sign in to comment