Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Update comments on CustomPath struct.
authorEtsuro Fujita <efujita@postgresql.org>
Thu, 3 Aug 2023 08:15:06 +0000 (17:15 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Thu, 3 Aug 2023 08:15:06 +0000 (17:15 +0900)
Commit e7cb7ee14 allowed custom scan providers to create CustomPath
paths for join relations as well, but missed updating the comments.

Back-patch to all supported branches.

Discussion: https://postgr.es/m/CAPmGK15ODkN%2B%3DhkBCufj1HBW0x5OTb65Xuy7ryXchMdiCMpx_g%40mail.gmail.com

src/include/nodes/pathnodes.h

index 5ebf0709799af2decdf18b920eef001412020423..d2b4271de9da070ac9c4b9194d831b56fbc17e95 100644 (file)
@@ -1353,15 +1353,18 @@ typedef struct ForeignPath
 } ForeignPath;
 
 /*
- * CustomPath represents a table scan done by some out-of-core extension.
+ * CustomPath represents a table scan or a table join done by some out-of-core
+ * extension.
  *
  * We provide a set of hooks here - which the provider must take care to set
  * up correctly - to allow extensions to supply their own methods of scanning
- * a relation.  For example, a provider might provide GPU acceleration, a
- * cache-based scan, or some other kind of logic we haven't dreamed up yet.
+ * a relation or joing relations.  For example, a provider might provide GPU
+ * acceleration, a cache-based scan, or some other kind of logic we haven't
+ * dreamed up yet.
  *
- * CustomPaths can be injected into the planning process for a relation by
- * set_rel_pathlist_hook functions.
+ * CustomPaths can be injected into the planning process for a base or join
+ * relation by set_rel_pathlist_hook or set_join_pathlist_hook functions,
+ * respectively.
  *
  * Core code must avoid assuming that the CustomPath is only as large as
  * the structure declared here; providers are allowed to make it the first