Re: New pgbench functions are misnamed

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: New pgbench functions are misnamed
Дата
Msg-id alpine.DEB.2.10.1605050933270.30701@sto
обсуждение исходный текст
Ответ на New pgbench functions are misnamed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> I noticed that commit 7e137f846 added functions named max() and min()
> to pgbench's expression syntax.  Unfortunately, these functions have
> zilch to do with what max() and min() do in SQL.  They're actually more
> like the greatest() and least() server-side functions.

Yep.

> While I can't imagine that we'd ever want to implement true aggregates 
> in pgbench expressions, it still seems like this is a recipe for 
> confusion.  Shouldn't we rename these to greatest() and least()?

My 0,02€: I like the simplicity of min/max names and I think that anyone 
would manage to deal with this level of confusion in a pgbench script, so 
I would not bother.

But if it is to be changed, best do it now!

-- 
Fabien.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Следующее
От: Ants Aasma
Дата:
Сообщение: Re: what to revert