| От | Tomas Vondra |
|---|---|
| Тема | Re: fdw_private and (List*) handling in FDW API |
| Дата | |
| Msg-id | ddb8a34ba631a2e1b2a11d93d740bd0c.squirrel@sq.gransy.com обсуждение |
| Ответ на | Re: fdw_private and (List*) handling in FDW API (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On 18 Říjen 2013, 17:52, Tom Lane wrote: > "Tomas Vondra" <tv@fuzzy.cz> writes: >> 2) Is there any particular reason why >> PlanForeignModify/BeginForeignModify >> require the fdw_private to be a List*, and not a generic pointer? > > That data has to be copiable by copyObject(), which a generic void* is > not. We could perhaps have made it Node* instead, but that would only > work conveniently if there were infrastructure for plugins to create new > first-class Node types; which there isn't. A List is often the easiest > way to transport a few random values from plan time to execution time, > so it seemed best to declare fdw_private that way. Oh, I see. Thanks for explanation. Tomas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера