Include unary plus in the Operator Precedence table.
authorTom Lane
Wed, 4 May 2011 19:02:34 +0000 (15:02 -0400)
committerTom Lane
Wed, 4 May 2011 19:02:34 +0000 (15:02 -0400)
Per gripe from Grzegorz Szpetkowski.

Also, change the subsection heading from "Lexical Precedence" (which is
a contradiction in terms) to "Operator Precedence".

doc/src/sgml/syntax.sgml

index 40a87aabc74b3b8b4a940f85b3c4287e97e8b50a..f6c4a4defa1959a167214d7306e0d1bba6da3862 100644 (file)
@@ -972,7 +972,7 @@ CAST ( 'string' AS type )
   
 
   
-   <span class="marked">Lexical</span> Precedence
+   <span class="marked">Operator</span> Precedence
 
    
     operator
@@ -1039,9 +1039,9 @@ SELECT (5 !) - 6;
       
 
       
-       -
+       + -
        right
-       unary minus
+       unary plus, unary minus
       
 
       
@@ -1065,7 +1065,7 @@ SELECT (5 !) - 6;
       
        IS
        
-       IS TRUE, IS FALSE, IS UNKNOWN, IS NULL
+       IS TRUE, IS FALSE, IS NULL, etc