postgresql/src/include/rewrite
Dean Rasheed 5f2e179bd3 Support MERGE into updatable views.
This allows the target relation of MERGE to be an auto-updatable or
trigger-updatable view, and includes support for WITH CHECK OPTION,
security barrier views, and security invoker views.

A trigger-updatable view must have INSTEAD OF triggers for every type
of action (INSERT, UPDATE, and DELETE) mentioned in the MERGE command.
An auto-updatable view must not have any INSTEAD OF triggers. Mixing
auto-update and trigger-update actions (i.e., having a partial set of
INSTEAD OF triggers) is not supported.

Rule-updatable views are also not supported, since there is no
rewriter support for non-SELECT rules with MERGE operations.

Dean Rasheed, reviewed by Jian He and Alvaro Herrera.

Discussion: https://postgr.es/m/CAEZATCVcB1g0nmxuEc-A+gGB0HnfcGQNGYH7gS=7rq0u0zOBXA@mail.gmail.com
2024-02-29 15:56:59 +00:00
..
prs2lock.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewriteDefine.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewriteHandler.h Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
rewriteManip.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewriteRemove.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewriteSearchCycle.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewriteSupport.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rowsecurity.h Update copyright for 2024 2024-01-03 20:49:05 -05:00