I'm spending time to try to make something useful of pgbench, which require a bunch of patches that work together to improve it for new use case, including not being limited to the current set of operators.

This decision is both illogical and arbitrary.

I disagree.  I think his decision was probably based on this email from me:

https://www.postgresql.org/message-id/ca+tgmoa0zp4a+s+kosav4qfdz-wa56vlph8me86rmpsnkvw...@mail.gmail.com

Nobody responded to that,

The answer is on the same day a direct reply that you can check here:

https://www.postgresql.org/message-id/alpine.DEB.2.20.1610041941150.24533%40lancre

The short version is: I have removed XOR and replaced "if" with the SQL CASE syntax, and provided justification for the added operators in a benchmarking context, i.e. some kind of test is necessary for TPC-B 2.0.0. For conditions, logical expressions are needed. Bitwise operators are used to skew distribution in some benchmarks (TPC-C as I recall). Functions ln/exp could be used for the same purpose, but I can remove those two if this is a blocker.

--
Fabien.


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to