postgres.git / summary / log / commit / refs

commit    508a26e2468fc4bb35f4b002552c304d51d97890
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Mon Dec 28 17:09:00 2015 +0000
First released in: 9.6.0, 9.1.20, 9.2.15, 9.3.11, 9.4.6, 9.5.0

    Document the exponentiation operator as associating left to right.
    
    Common mathematical convention is that exponentiation associates right to
    left.  We aren't going to change the parser for this, but we could note
    it in the operator's description.  (It's already noted in the operator
    precedence/associativity table, but users might not look there.)
    Per bug #13829 from Henrik Pauli.


doc/src/sgml/func.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 81c1d3fa929..6b3e5adfc76 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -505,7 +505,7 @@ <row> <entry> <literal>^</literal> </entry> - <entry>exponentiation</entry> + <entry>exponentiation (associates left to right)</entry> <entry><literal>2.0 ^ 3.0</literal></entry> <entry><literal>8</literal></entry> </row> [parent: 3479b7984b01]