New pgbench functions are misnamed - Mailing list pgsql-hackers

From Tom Lane
Subject New pgbench functions are misnamed
Date
Msg-id 728.1462398072@sss.pgh.pa.us
Whole thread Raw
Responses Re: New pgbench functions are misnamed  (Robert Haas <robertmhaas@gmail.com>)
Re: New pgbench functions are misnamed  (Fabien COELHO <coelho@cri.ensmp.fr>)
List 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.

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()?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pg_dump broken for non-super user
Next
From: Andres Freund
Date:
Subject: Re: atomic pin/unpin causing errors