]> granicus.if.org Git - postgresql/commitdiff
Document the exponentiation operator as associating left to right.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Dec 2015 17:09:00 +0000 (12:09 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Dec 2015 17:09:40 +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 6058bdd5ae00186a559f14d778a347a2fcae5023..389ba9ee76b00dac0c8f1a72df131830ce559821 100644 (file)
 
       <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>