From 5e45211a64149b3c659b90ff2de6fa982a5a93ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:17:33 +0200 Subject: Adding upstream version 15.5. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/custom-scan.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/src/sgml/html/custom-scan.html (limited to 'doc/src/sgml/html/custom-scan.html') diff --git a/doc/src/sgml/html/custom-scan.html b/doc/src/sgml/html/custom-scan.html new file mode 100644 index 0000000..76e8b9c --- /dev/null +++ b/doc/src/sgml/html/custom-scan.html @@ -0,0 +1,21 @@ + +Chapter 61. Writing a Custom Scan Provider

Chapter 61. Writing a Custom Scan Provider

+ PostgreSQL supports a set of experimental facilities which + are intended to allow extension modules to add new scan types to the system. + Unlike a foreign data wrapper, which is only + responsible for knowing how to scan its own foreign tables, a custom scan + provider can provide an alternative method of scanning any relation in the + system. Typically, the motivation for writing a custom scan provider will + be to allow the use of some optimization not supported by the core + system, such as caching or some form of hardware acceleration. This chapter + outlines how to write a new custom scan provider. +

+ Implementing a new type of custom scan is a three-step process. First, + during planning, it is necessary to generate access paths representing a + scan using the proposed strategy. Second, if one of those access paths + is selected by the planner as the optimal strategy for scanning a + particular relation, the access path must be converted to a plan. + Finally, it must be possible to execute the plan and generate the same + results that would have been generated for any other access path targeting + the same relation. +

\ No newline at end of file -- cgit v1.2.3