Skip to content

Commit 20f90a0

Browse files
author
Etsuro Fujita
committed
Update comments on CustomPath struct.
Commit e7cb7ee 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
1 parent 02c1b64 commit 20f90a0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/include/nodes/pathnodes.h

+8-5
Original file line numberDiff line numberDiff line change
@@ -1836,15 +1836,18 @@ typedef struct ForeignPath
18361836
} ForeignPath;
18371837

18381838
/*
1839-
* CustomPath represents a table scan done by some out-of-core extension.
1839+
* CustomPath represents a table scan or a table join done by some out-of-core
1840+
* extension.
18401841
*
18411842
* We provide a set of hooks here - which the provider must take care to set
18421843
* up correctly - to allow extensions to supply their own methods of scanning
1843-
* a relation. For example, a provider might provide GPU acceleration, a
1844-
* cache-based scan, or some other kind of logic we haven't dreamed up yet.
1844+
* a relation or joing relations. For example, a provider might provide GPU
1845+
* acceleration, a cache-based scan, or some other kind of logic we haven't
1846+
* dreamed up yet.
18451847
*
1846-
* CustomPaths can be injected into the planning process for a relation by
1847-
* set_rel_pathlist_hook functions.
1848+
* CustomPaths can be injected into the planning process for a base or join
1849+
* relation by set_rel_pathlist_hook or set_join_pathlist_hook functions,
1850+
* respectively.
18481851
*
18491852
* Core code must avoid assuming that the CustomPath is only as large as
18501853
* the structure declared here; providers are allowed to make it the first

0 commit comments

Comments
 (0)