mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
Update some comments that should've covered MERGE
Oversight in 7103ebb7aa
. Backpatch to 15.
Author: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/CAMbWs48gnDjZXq3-b56dVpQCNUJ5hD9kdtWN4QFwKCEapspNsA@mail.gmail.com
This commit is contained in:
@@ -1749,7 +1749,7 @@ grouping_planner(PlannerInfo *root, double tuple_fraction)
|
||||
|
||||
if (bms_membership(root->all_result_relids) == BMS_MULTIPLE)
|
||||
{
|
||||
/* Inherited UPDATE/DELETE */
|
||||
/* Inherited UPDATE/DELETE/MERGE */
|
||||
RelOptInfo *top_result_rel = find_base_rel(root,
|
||||
parse->resultRelation);
|
||||
int resultRelation = -1;
|
||||
@@ -1876,7 +1876,7 @@ grouping_planner(PlannerInfo *root, double tuple_fraction)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Single-relation INSERT/UPDATE/DELETE. */
|
||||
/* Single-relation INSERT/UPDATE/DELETE/MERGE. */
|
||||
resultRelations = list_make1_int(parse->resultRelation);
|
||||
if (parse->commandType == CMD_UPDATE)
|
||||
updateColnosLists = list_make1(root->update_colnos);
|
||||
|
Reference in New Issue
Block a user