mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add pow(), aka power(), function to pgbench.
Raúl Marín Rodríguez, reviewed by Fabien Coelho and Michael Paquier, with a minor fix by me. Discussion: http://postgr.es/m/CAM6_UM4XiA14y9HnDqu9kAAOtwMhHZxW--q_ZACZW9Hsrsf-tg@mail.gmail.com
This commit is contained in:
@ -1069,6 +1069,13 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
|
||||
<entry><literal>pi()</literal></entry>
|
||||
<entry><literal>3.14159265358979323846</literal></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal><function>pow(<replaceable>x</replaceable>, <replaceable>y</replaceable>)</function>, <function>power(<replaceable>x</replaceable>, <replaceable>y</replaceable>)</function></literal></entry>
|
||||
<entry>double</entry>
|
||||
<entry>exponentiation</entry>
|
||||
<entry><literal>pow(2.0, 10)</literal>, <literal>power(2.0, 10)</literal></entry>
|
||||
<entry><literal>1024.0</literal></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal><function>random(<replaceable>lb</replaceable>, <replaceable>ub</replaceable>)</function></literal></entry>
|
||||
<entry>integer</entry>
|
||||
|
Reference in New Issue
Block a user