mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Introduce custom path and scan providers.
This allows extension modules to define their own methods for scanning a relation, and get the core code to use them. It's unclear as yet how much use this capability will find, but we won't find out if we never commit it. KaiGai Kohei, reviewed at various times and in various levels of detail by Shigeru Hanada, Tom Lane, Andres Freund, Álvaro Herrera, and myself.
This commit is contained in:
@@ -128,6 +128,15 @@ extern Path *reparameterize_path(PlannerInfo *root, Path *path,
|
||||
Relids required_outer,
|
||||
double loop_count);
|
||||
|
||||
/*
|
||||
* Interface definition of custom-scan providers
|
||||
*/
|
||||
extern void register_custom_path_provider(CustomPathMethods *cpp_methods);
|
||||
|
||||
extern void create_customscan_paths(PlannerInfo *root,
|
||||
RelOptInfo *baserel,
|
||||
RangeTblEntry *rte);
|
||||
|
||||
/*
|
||||
* prototypes for relnode.c
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user