1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-01 01:04:50 +03:00

Doc: list AT TIME ZONE and COLLATE in operator precedence table.

These constructs have precedence, but we forgot to list them.
In HEAD, mention AT LOCAL as well as AT TIME ZONE.

Per gripe from Shay Rojansky.

Discussion: https://postgr.es/m/CADT4RqBPdbsZW7HS1jJP319TMRHs1hzUiP=iRJYR6UqgHCrgNQ@mail.gmail.com
This commit is contained in:
Tom Lane 2023-11-26 16:40:22 -05:00
parent b2caf7c0e1
commit 3558f120f8
2 changed files with 13 additions and 1 deletions

View File

@ -1065,6 +1065,18 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> )
<entry>unary plus, unary minus</entry>
</row>
<row>
<entry><token>COLLATE</token></entry>
<entry>left</entry>
<entry>collation selection</entry>
</row>
<row>
<entry><token>AT</token></entry>
<entry>left</entry>
<entry><literal>AT TIME ZONE</literal>, <literal>AT LOCAL</literal></entry>
</row>
<row>
<entry><token>^</token></entry>
<entry>left</entry>

View File

@ -858,7 +858,7 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
%left '*' '/' '%'
%left '^'
/* Unary Operators */
%left AT /* sets precedence for AT TIME ZONE */
%left AT /* sets precedence for AT TIME ZONE, AT LOCAL */
%left COLLATE
%right UMINUS
%left '[' ']'