aboutsummaryrefslogtreecommitdiff
path: root/src/fe_utils/string_utils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-05-05 14:51:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-05-05 14:51:00 -0400
commit7a622b2731db5d0f6db8a3d0af88177f96d1cb2e (patch)
tree50391a3012587c3882cd87d5b7a3ab4738cb87a7 /src/fe_utils/string_utils.c
parentc311f7887376f7f3ce24c4c0dac4f9cb6ad3bee3 (diff)
downloadpostgresql-7a622b2731db5d0f6db8a3d0af88177f96d1cb2e.tar.gz
postgresql-7a622b2731db5d0f6db8a3d0af88177f96d1cb2e.zip
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.
Diffstat (limited to 'src/fe_utils/string_utils.c')
0 files changed, 0 insertions, 0 deletions