pgsql: Rename pgbench min/max to least/greatest, and fix handling of do
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Rename pgbench min/max to least/greatest, and fix handling of do |
| Дата | |
| Msg-id | E1ayOMj-0003ay-8e@gemulon.postgresql.org обсуждение |
| Ответы |
Re: pgsql: Rename pgbench min/max to least/greatest,
and fix handling of do
|
| Список | pgsql-committers |
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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/7a622b2731db5d0f6db8a3d0af88177f96d1cb2e Modified Files -------------- doc/src/sgml/ref/pgbench.sgml | 25 +++++++++-------- src/bin/pgbench/exprparse.y | 8 +++--- src/bin/pgbench/pgbench.c | 64 ++++++++++++++++++++++++++++++++----------- src/bin/pgbench/pgbench.h | 4 +-- 4 files changed, 67 insertions(+), 34 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера