forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit25e777c
committed
Split ExecUpdate and ExecDelete into reusable pieces
Create subroutines ExecUpdatePrologue / ExecUpdateAct /ExecUpdateEpilogue, and similar for ExecDelete.Introduce a new struct to be used internally in nodeModifyTable.c,dubbed ModifyTableContext, which contains all context information neededto perform these operations, as well as ExecInsert and others.This allows using a different schedule and a different way of evaluatingthe results of these operations, which can be exploited by a latercommit introducing support for MERGE. It also makes ExecUpdate andExecDelete proper shorter and (hopefully) simpler.Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Amit Langote <amitlangote09@gmail.com>Reviewed-by: Japin Li <japinli@hotmail.com>Reviewed-by: Zhihong Yu <zyu@yugabyte.com>Discussion:https://postgr.es/m/202202271724.4z7xv3cf46kv@alvherre.pgsql1 parentf2553d4 commit25e777c
File tree
2 files changed
+484
-299
lines changed- src
- backend/executor
- tools/pgindent
2 files changed
+484
-299
lines changed0 commit comments
Comments
(0)