Rename pgbench min/max to least/greatest, and fix handling of double args.
authorTom Lane <[email protected]>
Thu, 5 May 2016 18:51:00 +0000 (14:51 -0400)
committerTom Lane <[email protected]>
Thu, 5 May 2016 18:51:00 +0000 (14:51 -0400)
commit7a622b2731db5d0f6db8a3d0af88177f96d1cb2e
tree50391a3012587c3882cd87d5b7a3ab4738cb87a7
parentc311f7887376f7f3ce24c4c0dac4f9cb6ad3bee3
Rename pgbench min/max to least/greatest, and fix handling of double args.

These functions behave like the backend's least/greatest functions,
not like min/max, so the originally-chosen names invite confusion.
Per discussion, rename to least/greatest.

I also took it upon myself to make them return double if any input is
double.  The previous behavior of silently coercing all inputs to int
surely does not meet the principle of least astonishment.

Copy-edit some of the other new functions' documentation, too.
doc/src/sgml/ref/pgbench.sgml
src/bin/pgbench/exprparse.y
src/bin/pgbench/pgbench.c
src/bin/pgbench/pgbench.h