mirror of
https://github.com/postgres/postgres.git
synced 2026-01-13 12:22:55 +03:00
Modified files for MERGE
This commit is contained in:
@@ -50,6 +50,7 @@ typedef enum ParseExprKind
|
||||
EXPR_KIND_INSERT_TARGET, /* INSERT target list item */
|
||||
EXPR_KIND_UPDATE_SOURCE, /* UPDATE assignment source item */
|
||||
EXPR_KIND_UPDATE_TARGET, /* UPDATE assignment target item */
|
||||
EXPR_KIND_MERGE_WHEN_AND, /* MERGE WHEN ... AND condition */
|
||||
EXPR_KIND_GROUP_BY, /* GROUP BY */
|
||||
EXPR_KIND_ORDER_BY, /* ORDER BY */
|
||||
EXPR_KIND_DISTINCT_ON, /* DISTINCT ON */
|
||||
@@ -127,7 +128,7 @@ typedef Node *(*CoerceParamHook) (ParseState *pstate, Param *param,
|
||||
* p_parent_cte: CommonTableExpr that immediately contains the current query,
|
||||
* if any.
|
||||
*
|
||||
* p_target_relation: target relation, if query is INSERT, UPDATE, or DELETE.
|
||||
* p_target_relation: target relation, if query is INSERT/UPDATE/DELETE/MERGE
|
||||
*
|
||||
* p_target_rangetblentry: target relation's entry in the rtable list.
|
||||
*
|
||||
@@ -181,7 +182,7 @@ struct ParseState
|
||||
List *p_ctenamespace; /* current namespace for common table exprs */
|
||||
List *p_future_ctes; /* common table exprs not yet in namespace */
|
||||
CommonTableExpr *p_parent_cte; /* this query's containing CTE */
|
||||
Relation p_target_relation; /* INSERT/UPDATE/DELETE target rel */
|
||||
Relation p_target_relation; /* INSERT/UPDATE/DELETE/MERGE target rel */
|
||||
RangeTblEntry *p_target_rangetblentry; /* target rel's RTE */
|
||||
bool p_is_insert; /* process assignment like INSERT not UPDATE */
|
||||
List *p_windowdefs; /* raw representations of window clauses */
|
||||
|
||||
Reference in New Issue
Block a user