summaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorTom Lane2023-04-05 20:59:00 +0000
committerTom Lane2023-04-05 20:59:09 +0000
commit16dc2703c5413534d4989e08253e8f4fcb0e2aab (patch)
treec25f739d183d93510418b734ebd36fc3e2e9fde9 /src/backend/commands
parentdad50f677c42de207168a3f08982ba23c9fc6720 (diff)
Support "Right Anti Join" plan shapes.
Merge and hash joins can support antijoin with the non-nullable input on the right, using very simple combinations of their existing logic for right join and anti join. This gives the planner more freedom about how to order the join. It's particularly useful for hash join, since we may now have the option to hash the smaller table instead of the larger. Richard Guo, reviewed by Ronan Dunklau and myself Discussion: https://postgr.es/m/CAMbWs48xh9hMzXzSy3VaPzGAz+fkxXXTUbCLohX1_L8THFRm2Q@mail.gmail.com
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/explain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 7e48e9c2101..5334c503e12 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -1561,6 +1561,9 @@ ExplainNode(PlanState *planstate, List *ancestors,
case JOIN_ANTI:
jointype = "Anti";
break;
+ case JOIN_RIGHT_ANTI:
+ jointype = "Right Anti";
+ break;
default:
jointype = "???";
break;