diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-03-17 11:47:04 +0100 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-03-17 11:47:04 +0100 |
commit | 25e777cf8e547d7423d2e1e9da71f98b9414d59e (patch) | |
tree | e6696241a9d8e21fe0a419572cf8b8aab43fd690 /src/backend/executor/nodeGroup.c | |
parent | f2553d43060edb210b36c63187d52a632448e1d2 (diff) | |
download | postgresql-25e777cf8e547d7423d2e1e9da71f98b9414d59e.tar.gz postgresql-25e777cf8e547d7423d2e1e9da71f98b9414d59e.zip |
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 needed
to perform these operations, as well as ExecInsert and others.
This allows using a different schedule and a different way of evaluating
the results of these operations, which can be exploited by a later
commit introducing support for MERGE. It also makes ExecUpdate and
ExecDelete 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.pgsql
Diffstat (limited to 'src/backend/executor/nodeGroup.c')
0 files changed, 0 insertions, 0 deletions