Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
bea8c63
Add support for RETURNING operator for ORCA
kooooootb Dec 2, 2024
4372190
adapt leftover regress test to orca
kooooootb Mar 10, 2025
ebac187
change expectance in regress with multiple DML CTE references
kooooootb Mar 10, 2025
79c1cd3
also check CTEs when marking query as DML
kooooootb Mar 10, 2025
3120298
remove unused header
kooooootb Mar 10, 2025
b5b22a4
fix tests
kooooootb Mar 11, 2025
75dc8e9
fix double delete on logical delete
kooooootb Mar 11, 2025
5ddee8d
fix gporca unit tests expected dumps
kooooootb Mar 11, 2025
bed16f1
revert comment edit
kooooootb Mar 11, 2025
8fb65ac
gracer setting optimizer
kooooootb Mar 11, 2025
8272021
separate returning_gp regress expected to orca's and planner's, rever…
kooooootb Mar 12, 2025
d19e2fd
add newline to returning_gp.out
kooooootb Mar 13, 2025
165b98d
dont request extra result if no projection needed
kooooootb Mar 14, 2025
7d6fa90
fix comment
kooooootb Mar 14, 2025
7b3801f
fix CTAS requesting motion for gathering output
kooooootb Mar 14, 2025
6ceffeb
fix orca checking wrong target list for dml
kooooootb Mar 15, 2025
e3a1a85
fix empty update output
kooooootb Mar 15, 2025
2d65cc1
reorder proj lists in dml dxl plan node
kooooootb Mar 15, 2025
096ab34
check output existence by columns usage rather than by required columns
kooooootb Mar 15, 2025
1a134ef
Dont require distribution only for DML
kooooootb Mar 15, 2025
f2d3a6c
fix column names in returning output
kooooootb Mar 15, 2025
64b98d3
linter fixes
kooooootb Mar 15, 2025
0701539
revert changind index of checked proj list in hash join
kooooootb Mar 15, 2025
89ca779
adapt regress orca expected
kooooootb Mar 15, 2025
eeeb8d9
divide "with" regress test to planner and orca expectance files
kooooootb Mar 15, 2025
8ba5b19
fix parsing after reordering
kooooootb Mar 16, 2025
37f29bb
actualize gporca test after reordering proj lists
kooooootb Mar 16, 2025
c1bf551
add gporca tests for DML with returning projection
kooooootb Mar 16, 2025
3d92813
actualize gporca test after reordering proj lists
kooooootb Mar 16, 2025
23bfff3
fix indent
kooooootb Mar 20, 2025
5042590
add tracing fallback to planner in returning_gp test
kooooootb Mar 20, 2025
cb84837
Merge branch 'adb6dev' into orca_returning_dml_dev
kooooootb Mar 20, 2025
07bbb64
reduplicate deleting output cols in query2dxl
kooooootb Mar 21, 2025
b143240
remove unused methods
kooooootb Mar 21, 2025
0ff3182
some leftovers
kooooootb Mar 21, 2025
6b6d45b
copy columns with their usage, this will reduced unused columns in ct…
kooooootb Mar 21, 2025
c3ae187
set result tuple slot to returning after exeecinit because sort node …
kooooootb Mar 21, 2025
f1a53af
store returning projection in DML plan node's targetlist, save previo…
kooooootb Mar 22, 2025
ee5d4e5
adapt with_clause test
kooooootb Mar 22, 2025
3748719
add test case to with_clause - order by system column
kooooootb Mar 22, 2025
d894fde
fix gporca unit test dumps after copying columns with their usage
kooooootb Mar 22, 2025
3ecc55a
reindent new gporca minidumps
kooooootb Mar 22, 2025
7667478
fix output of DML nodes in plan in regress tests after fixing targetlist
kooooootb Mar 23, 2025
f808573
fix comment
kooooootb Mar 24, 2025
fe029d8
separate returning functionality in CLogicalReturning
kooooootb Mar 24, 2025
174f7dc
fixes CLogicalReturning
kooooootb Mar 24, 2025
af87fe0
fix linter
kooooootb Mar 25, 2025
a02471e
move empty line
kooooootb Mar 26, 2025
85adab1
FHasLogicalDML get last from RemoveLast
kooooootb Mar 26, 2025
8dd1357
descriptor getter to base class
kooooootb Mar 26, 2025
d021717
hash value and matches to base class
kooooootb Mar 26, 2025
73df536
forgot CLogicalDML
kooooootb Mar 26, 2025
f8369e1
deriveketcollection to base class
kooooootb Mar 26, 2025
5b348ea
add asserts for popInsert->Ptabdesc()->MDId()
kooooootb Mar 26, 2025
77e49d9
copy columns to base class
kooooootb Mar 26, 2025
f214e4a
calc arity on place
kooooootb Mar 27, 2025
4410cc3
calc size in place
kooooootb Mar 27, 2025
5a7cbf9
nodeDML braces
kooooootb Mar 27, 2025
e2d94e8
nodeDML braces
kooooootb Mar 27, 2025
96a4a36
common FTriggersExist logic in FTriggersExistInner
kooooootb Mar 27, 2025
1b60ad5
dont check logical dml that used columns are subset of input columns
kooooootb Mar 30, 2025
71279d7
typo
kooooootb Mar 30, 2025
6e4c6d6
linter
kooooootb Mar 30, 2025
389d0f6
copyright header
kooooootb Mar 31, 2025
c8631c0
fix subplans: add intermediate Result node if subplan-join's child no…
kooooootb May 2, 2025
2bd417d
linter
kooooootb May 2, 2025
876a969
fix logical error in triggers
kooooootb May 2, 2025
2e3dbf8
add test DML on partitioned table with RETURNING subquery with cte
kooooootb May 2, 2025
7a6b1d3
fix regress: add sort in test query
kooooootb May 5, 2025
c561a78
review fixes
kooooootb May 20, 2025
4a4b234
change field name to targetListProj
kooooootb May 22, 2025
27bdace
reformulate test dedscription
kooooootb May 22, 2025
be17064
fix comment CLogicalDML in CLogicalReturning
kooooootb May 22, 2025
5605ada
fix odd assignment
kooooootb May 22, 2025
d105736
shorten Squelch function in nodeDML
kooooootb May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/backend/executor/execAmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "executor/nodeDynamicBitmapIndexscan.h"
#include "executor/nodeBitmapOr.h"
#include "executor/nodeCtescan.h"
#include "executor/nodeDML.h"
#include "executor/nodeForeignscan.h"
#include "executor/nodeFunctionscan.h"
#include "executor/nodeHash.h"
Expand Down Expand Up @@ -619,6 +620,10 @@ ExecSquelchNode(PlanState *node)
ExecSquelchModifyTable((ModifyTableState *) node);
return;

case T_DMLState:
ExecSquelchDML((DMLState *) node);
return;

/*
* Node types that need custom code to recurse.
*/
Expand Down
Loading