postgresql/src/backend/optimizer/util
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 Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
appendinfo.c Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
clauses.c Add SQL/JSON query functions 2024-03-21 17:07:03 +09:00
inherit.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
joininfo.c Add better handling of redundant IS [NOT] NULL quals 2024-01-23 18:09:18 +13:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
orclauses.c Code review for 6190d828cd 2024-03-25 19:45:27 +09:00
paramassign.c Add RETURNING support to MERGE. 2024-03-17 13:58:59 +00:00
pathnode.c Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2024-03-30 10:00:26 +00:00
placeholder.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
plancat.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
predtest.c Refactor predicate_{implied,refuted}_by_simple_clause. 2024-03-25 17:45:15 -04:00
relnode.c Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
restrictinfo.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tlist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
var.c Update copyright for 2024 2024-01-03 20:49:05 -05:00