pgbench doc typos

Started by Fabien COELHOabout 8 years ago5 messageshackers
Jump to latest
#1Fabien COELHO
coelho@cri.ensmp.fr

Attached patch fixes two very minor typos in pgbench recently added
documentations:

- one about the mod() function

- two about the hash() function

--
Fabien.

Attachments:

pgbench-doc-typo-1.patchtext/plain; name=pgbench-doc-typo-1.patchDownload+3-3
#2Edmund Horner
ejrh00@gmail.com
In reply to: Fabien COELHO (#1)
Re: pgbench doc typos

I did a quick review of this.

The patch is just a doc typo fix and it applies cleanly to master (as of this email). I was able to build the docs, and they look ok.

Fixing the abs/hash bracketing seems clear. The wasn't sure about rewriting "mod(i, bj)" as "mod(i, j)", because there could be some convention about parameter names, but I can't think of anything the "b" could be in the case of mod.

Edmund

#3Fabien COELHO
coelho@cri.ensmp.fr
In reply to: Edmund Horner (#2)
Re: pgbench doc typos

Hello Edmund,

Thanks for the check. You might consider turning the patch as ready in the
cf app.

Fixing the abs/hash bracketing seems clear. The wasn't sure about
rewriting "mod(i, bj)" as "mod(i, j)", because there could be some
convention about parameter names, but I can't think of anything the "b"
could be in the case of mod.

Might be a left-over a previous version which might have used MOD(a, b),
but a/b are rather used for fp numbers and i/j for integers.

--
Fabien.

#4Edmund Horner
ejrh00@gmail.com
In reply to: Fabien COELHO (#3)
Re: pgbench doc typos

On 30 March 2018 at 19:26, Fabien COELHO <coelho@cri.ensmp.fr> wrote:

Thanks for the check. You might consider turning the patch as ready in the
cf app.

Ok, I have done so, since the patch is small and simple.

Fixing the abs/hash bracketing seems clear. The wasn't sure about
rewriting "mod(i, bj)" as "mod(i, j)", because there could be some
convention about parameter names, but I can't think of anything the "b"
could be in the case of mod.

Might be a left-over a previous version which might have used MOD(a, b), but
a/b are rather used for fp numbers and i/j for integers.

Ah that seems possible.

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Edmund Horner (#4)
Re: pgbench doc typos

On 3/30/18 03:30, Edmund Horner wrote:

On 30 March 2018 at 19:26, Fabien COELHO <coelho@cri.ensmp.fr> wrote:

Thanks for the check. You might consider turning the patch as ready in the
cf app.

Ok, I have done so, since the patch is small and simple.

Fixing the abs/hash bracketing seems clear. The wasn't sure about
rewriting "mod(i, bj)" as "mod(i, j)", because there could be some
convention about parameter names, but I can't think of anything the "b"
could be in the case of mod.

Might be a left-over a previous version which might have used MOD(a, b), but
a/b are rather used for fp numbers and i/j for integers.

Ah that seems possible.

committed

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services