Re: [HACKERS] FDW: ForeignPlan and parameterized paths

2012-12-20 Thread Tom Lane
Ronan Dunklau writes: >> I intentionally did the nestloop_params substitution after calling >> GetForeignPlan not before. It's not apparent to me why it would be >> useful to do it before, because the FDW is going to have no idea what >> those params represent. (Note that they represent values c

Re: [HACKERS] FDW: ForeignPlan and parameterized paths

2012-12-19 Thread Ronan Dunklau
> I intentionally did the nestloop_params substitution after calling > GetForeignPlan not before. It's not apparent to me why it would be > useful to do it before, because the FDW is going to have no idea what > those params represent. (Note that they represent values coming from > some other, pr

Re: [HACKERS] FDW: ForeignPlan and parameterized paths

2012-12-19 Thread Tom Lane
Ronan Dunklau writes: > I've noticed that, when implementing a FDW, it is difficult to use a plan > which > best path is a parameterized path. This comes from the fact that the > parameterized clause is not easily available at plan time. > This is what I understood from how it works: > - The