postgresql/src/backend/optimizer/prep
Dean Rasheed 0294df2f1f Add support for MERGE ... WHEN NOT MATCHED BY SOURCE.
This allows MERGE commands to include WHEN NOT MATCHED BY SOURCE
actions, which operate on rows that exist in the target relation, but
not in the data source. These actions can execute UPDATE, DELETE, or
DO NOTHING sub-commands.

This is in contrast to already-supported WHEN NOT MATCHED actions,
which operate on rows that exist in the data source, but not in the
target relation. To make this distinction clearer, such actions may
now be written as WHEN NOT MATCHED BY TARGET.

Writing WHEN NOT MATCHED without specifying BY SOURCE or BY TARGET is
equivalent to writing WHEN NOT MATCHED BY TARGET.

Dean Rasheed, reviewed by Alvaro Herrera, Ted Yu and Vik Fearing.

Discussion: https://postgr.es/m/CAEZATCWqnKGc57Y_JanUBHQXNKcXd7r=0R4NEZUVwP+syRkWbA@mail.gmail.com
2024-03-30 10:00:26 +00:00
..
Makefile Move per-agg and per-trans duplicate finding to the planner. 2020-11-24 10:45:00 +02:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
prepagg.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
prepjointree.c Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2024-03-30 10:00:26 +00:00
prepqual.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
preptlist.c Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2024-03-30 10:00:26 +00:00
prepunion.c Allow planner to use Merge Append to efficiently implement UNION 2024-03-25 14:31:14 +13:00