Document the exponentiation operator as associating left to right.
authorTom Lane
Mon, 28 Dec 2015 17:09:00 +0000 (12:09 -0500)
committerTom Lane
Mon, 28 Dec 2015 17:09:18 +0000 (12:09 -0500)
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

index e1edbb34f5229b9d5f43c3dfb5652a6108a6464a..38280231999b774e2129773e9f892b15916d1095 100644 (file)
 
       
         ^ 
-       exponentiation
+       exponentiation (associates left to right)
        2.0 ^ 3.0
        8