summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-12-28 12:09:00 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-12-28 12:09:40 -0500
commit4388895a65aa71961e885d8a292e95b70fd57ad8 (patch)
treeec4379931efff75b9f909a5f2632751aefc2616b
parent1b6102eb73f4483eb30f3008b07882a93ff369f8 (diff)
downloadpostgresql-4388895a65aa71961e885d8a292e95b70fd57ad8.tar.gz
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.
-rw-r--r--doc/src/sgml/func.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 6058bdd5ae..389ba9ee76 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>