Re: [HACKERS] Possible problem in Custom Scan API

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Possible problem in Custom Scan API
Дата
Msg-id 4509.1491944329@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Possible problem in Custom Scan API  (Dmitry Ivanov <d.ivanov@postgrespro.ru>)
Ответы Re: [HACKERS] Possible problem in Custom Scan API
Список pgsql-hackers
Dmitry Ivanov <d.ivanov@postgrespro.ru> writes:
>> Reading between the lines, I think the problem may be that you're not
>> being careful about how you set up custom_scan_tlist.  But since the
>> core code has zero involvement in that decision, it's hard to see why
>> it would be a core code bug.

> I'm sorry, but you didn't understand. It's *the core code* that builds the 
> targetlist, and sometimes it may decide to provide a physical targetlist, 
> not the one that's *really needed*.

Uh, no, construction of a custom plan node is entirely driven by the
PlanCustomPath method as far as I can see.  You're free to ignore what
create_scan_plan did and insert your own tlist.  In particular, if what
your custom path actually is is a rescan of something like an
IndexOnlyScan, why don't you just copy the IOS's result tlist?
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] src/interfaces/libpq shipping nmake-related Makefiles
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] TAP tests take a long time