Skip to content

Commit 91d1f2d

Browse files
committed
Rename a parse node to be more general
A WHERE clause will be used for row filtering in logical replication. We already have a similar node: 'WHERE (condition here)'. Let's rename the node to a generic name and use it for row filtering too. Author: Euler Taveira <euler.taveira@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/CAHE3wggb715X+mK_DitLXF25B=jE6xyNCH4YOwM860JR7HarGQ@mail.gmail.com
1 parent a1999a0 commit 91d1f2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
495495
%type <node> def_arg columnElem where_clause where_or_current_clause
496496
a_expr b_expr c_expr AexprConst indirection_el opt_slice_bound
497497
columnref in_expr having_clause func_table xmltable array_expr
498-
ExclusionWhereClause operator_def_arg
498+
OptWhereClause operator_def_arg
499499
%type <list> rowsfrom_item rowsfrom_list opt_col_def_list
500500
%type <boolean> opt_ordinality
501501
%type <list> ExclusionConstraintList ExclusionConstraintElem
@@ -3837,7 +3837,7 @@ ConstraintElem:
38373837
$$ = (Node *)n;
38383838
}
38393839
| EXCLUDE access_method_clause '(' ExclusionConstraintList ')'
3840-
opt_c_include opt_definition OptConsTableSpace ExclusionWhereClause
3840+
opt_c_include opt_definition OptConsTableSpace OptWhereClause
38413841
ConstraintAttributeSpec
38423842
{
38433843
Constraint *n = makeNode(Constraint);
@@ -3939,7 +3939,7 @@ ExclusionConstraintElem: index_elem WITH any_operator
39393939
}
39403940
;
39413941

3942-
ExclusionWhereClause:
3942+
OptWhereClause:
39433943
WHERE '(' a_expr ')' { $$ = $3; }
39443944
| /*EMPTY*/ { $$ = NULL; }
39453945
;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy