Re: Get access to the whole query in CustomScan path callback

2023-01-13 Thread Amin
I cannot find any information related to other relations in the query other than the one which is being scanned in the root pointer. Is there any function call which can be used to get access to it? On Wed, Dec 21, 2022 at 9:46 AM Tom Lane wrote: > Amin writes: > > The goal is to have access to

Re: Get access to the whole query in CustomScan path callback

2022-12-21 Thread Tom Lane
Amin writes: > The goal is to have access to all the tables that are being scanned or will > be scanned as a part of the query. Basically, the callback looks like this: > typedef void (*set_rel_pathlist_hook_type) (PlannerInfo *root, > RelOptInfo *rel,

Get access to the whole query in CustomScan path callback

2022-12-21 Thread Amin
Hi, The goal is to have access to all the tables that are being scanned or will be scanned as a part of the query. Basically, the callback looks like this: typedef void (*set_rel_pathlist_hook_type) (PlannerInfo *root, RelOptInfo *rel,