Re: [HACKERS] pow support for pgbench
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Raúl Marín Rodríguez <rmrodriguez@carto.com>
Cc: Michael Paquier <michael.paquier@gmail.com>,
Fabien COELHO <coelho@cri.ensmp.fr>, Alvaro Herrera <alvherre@alvh.no-ip.org>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-12-01T19:02:59Z
Lists: pgsql-hackers
On Fri, Dec 1, 2017 at 4:57 AM, Raúl Marín Rodríguez <rmrodriguez@carto.com> wrote: > I've rebased the patch so it can be applied cleanly on top of current > master. Please add the new function into the documentation table in alphabetical order. The fact that the return type is not consistently of one type bothers me. I'm not sure pgbench's expression language is a good place to runtime polymorphism -- SQL doesn't work that way. + /* + * pow() for integer values with exp >= 0. Matches SQL pow() behaviour + */ What's the name of the backend function whose behavior this matches? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Add pow(), aka power(), function to pgbench.
- 7a727c180aa3 11.0 landed
-
pgbench: Support double constants and functions.
- 86c43f4e22c0 9.6.0 cited