Remove gram.y's precedence declaration for OVERLAPS.
authorTom Lane
Sun, 9 Aug 2015 23:01:04 +0000 (19:01 -0400)
committerTom Lane
Sun, 9 Aug 2015 23:01:17 +0000 (19:01 -0400)
The allowed syntax for OVERLAPS, viz "row OVERLAPS row", is sufficiently
constrained that we don't actually need a precedence declaration for
OVERLAPS; indeed removing this declaration does not change the generated
gram.c file at all.  Let's remove it to avoid confusion about whether
OVERLAPS has precedence or not.  If we ever generalize what we allow for
OVERLAPS, we might need to put back a precedence declaration for it,
but we might want some other level than what it has today --- and leaving
the declaration there would just risk confusion about whether that would
be an incompatible change.

Likewise, remove OVERLAPS from the documentation's precedence table.

Per discussion with Noah Misch.  Back-patch to 9.5 where we hacked up some
nearby precedence decisions.

doc/src/sgml/syntax.sgml
src/backend/parser/gram.y

index 140b3bd12efaf878b743a0a2f5baadc707618104..47512f73dfd39bbaad1c1f732a2859b53b76ffcd 100644 (file)
@@ -1069,12 +1069,6 @@ SELECT (5 !) - 6;
        all other native and user-defined operators
       
 
-      
-       OVERLAPS
-       
-       time interval overlap
-      
-
       
        BETWEEN IN LIKE ILIKE SIMILAR
        
index 4e02f7d73f24be6524b30d37ef4d27b131a1134c..3b5cef4ff41f9a6cf5c58e717e41d40bcf53cf83 100644 (file)
@@ -673,7 +673,6 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
 %nonassoc  '<' '>' '=' LESS_EQUALS GREATER_EQUALS NOT_EQUALS
 %nonassoc  BETWEEN IN_P LIKE ILIKE SIMILAR NOT_LA
 %nonassoc  ESCAPE          /* ESCAPE must be just above LIKE/ILIKE/SIMILAR */
-%nonassoc  OVERLAPS
 %left      POSTFIXOP       /* dummy for postfix Op rules */
 /*
  * To support target_el without AS, we must give IDENT an explicit priority