Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e3e1ae

Browse files
committed
Remove gram.y's precedence declaration for OVERLAPS.
The allowed syntax for OVERLAPS, viz "row OVERLAPS row", is sufficientlyconstrained that we don't actually need a precedence declaration forOVERLAPS; indeed removing this declaration does not change the generatedgram.c file at all. Let's remove it to avoid confusion about whetherOVERLAPS has precedence or not. If we ever generalize what we allow forOVERLAPS, we might need to put back a precedence declaration for it,but we might want some other level than what it has today --- and leavingthe declaration there would just risk confusion about whether that wouldbe 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 somenearby precedence decisions.
1 parent2a330d5 commit1e3e1ae

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

‎doc/src/sgml/syntax.sgml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,12 +1069,6 @@ SELECT (5 !) - 6;
10691069
<entry>all other native and user-defined operators</entry>
10701070
</row>
10711071

1072-
<row>
1073-
<entry><token>OVERLAPS</token></entry>
1074-
<entry></entry>
1075-
<entry>time interval overlap</entry>
1076-
</row>
1077-
10781072
<row>
10791073
<entry><token>BETWEEN</token> <token>IN</token> <token>LIKE</token> <token>ILIKE</token> <token>SIMILAR</token></entry>
10801074
<entry></entry>

‎src/backend/parser/gram.y

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,6 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
673673
%nonassoc'<''>''='LESS_EQUALSGREATER_EQUALSNOT_EQUALS
674674
%nonassocBETWEENIN_PLIKEILIKESIMILARNOT_LA
675675
%nonassocESCAPE/* ESCAPE must be just above LIKE/ILIKE/SIMILAR*/
676-
%nonassocOVERLAPS
677676
%leftPOSTFIXOP/* dummy for postfix Op rules*/
678677
/*
679678
* To support target_el without AS, we must give IDENT an explicit priority

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp