Re: Missing comments/docs about custom scan path
Etsuro Fujita <etsuro.fujita@gmail.com>
From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2023-08-30T09:07:59Z
Lists: pgsql-hackers
Hi Richard, On Wed, Aug 30, 2023 at 11:05 AM Richard Guo <guofenglinux@gmail.com> wrote: > On Tue, Aug 29, 2023 at 5:08 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote: >> Another thing I would like to propose is minor adjustments to the docs >> related to parallel query: >> >> A custom scan provider will typically add paths for a base relation by >> setting the following hook, which is called after the core code has >> generated all the access paths it can for the relation (except for >> Gather paths, which are made after this call so that they can use >> partial paths added by the hook): >> >> For clarity, I think "except for Gather paths" should be "except for >> Gather and Gather Merge paths". >> >> Although this hook function can be used to examine, modify, or remove >> paths generated by the core system, a custom scan provider will >> typically confine itself to generating CustomPath objects and adding >> them to rel using add_path. >> >> For clarity, I think "adding them to rel using add_path" should be eg, >> "adding them to rel using add_path, or using add_partial_path if they >> are partial paths". > +1. I can see that this change makes the doc more consistent with the > comments in set_rel_pathlist. Agreed. I have committed the patch. Thanks for taking a look! Best regards, Etsuro Fujita
Commits
-
Doc: Improve documentation for creating custom scan paths.
- 7ef5f5fb3240 17.0 landed
-
Doc: update documentation for creating custom scan paths.
- 0a1ff1d724e8 11.21 landed
- 9528ae1a1855 12.16 landed
- cc20236d15b3 13.12 landed
- 1ecd74396902 14.9 landed
- dea12a1fd4fd 15.4 landed
- f0a3805d7c44 16.0 landed
- 74a2dfee2255 17.0 landed
-
Update comments on CustomPath struct.
- db395e2239a2 11.21 landed
- 329f3a4bbab1 12.16 landed
- 4eb8b9c28256 13.12 landed
- 1ea0424a5b8e 14.9 landed
- 9f495270cca7 15.4 landed
- c575e00230ed 16.0 landed
- 20f90a0e4d86 17.0 landed
-
Basic partition-wise join functionality.
- f49842d1ee31 11.0 cited
-
Allow FDWs and custom scan providers to replace joins with scans.
- e7cb7ee14555 9.5.0 cited