Specify description of the SpecialJoinInfo structure
Started by Andrei Lepikhovabout 2 years ago1 messages
Hi,
Working on Asymmetric Join, I found slight inconsistency in the
description of SpecialJoinInfo: join type JOIN_ANTI can be accompanied
by a zero value of the ojrelid if this join was created by the
transformation of the NOT EXISTS subquery.
--
regards,
Andrei Lepikhov
Postgres Professional
Attachments:
clarify_sjinfo_description.difftext/plain; charset=UTF-8; name=clarify_sjinfo_description.diffDownload
diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h
index ed85dc7414..189b59f127 100644
--- a/src/include/nodes/pathnodes.h
+++ b/src/include/nodes/pathnodes.h
@@ -2791,7 +2791,8 @@ typedef struct PlaceHolderVar
*
* ojrelid is the RT index of the join RTE representing this outer join,
* if there is one. It is zero when jointype is INNER or SEMI, and can be
- * zero for jointype ANTI (if the join was transformed from a SEMI join).
+ * zero for jointype ANTI (if the join was transformed from a SEMI join or
+ * converted from a sublink).
* One use for this field is that when constructing the output targetlist of a
* join relation that implements this OJ, we add ojrelid to the varnullingrels
* and phnullingrels fields of nullable (RHS) output columns, so that the