Re: Why does load_external_function() return PGFunction?
От | Tom Lane |
---|---|
Тема | Re: Why does load_external_function() return PGFunction? |
Дата | |
Msg-id | 30501.1517949809@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Why does load_external_function() return PGFunction? (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Why does load_external_function() return PGFunction?
Re: Why does load_external_function() return PGFunction? Re: Why does load_external_function() return PGFunction? |
Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes: > We've several callers to load_external_function() that do not use the > returned value as a PGFunction. I'd vote for changing the return type to > void * and have fmgr.c cast it to PGFunction after verifying the > function's magic. void* isn't necessarily compatible with function pointers --- there are platforms where they're physically different widths, though possibly you'd never get PG to run on such hardware anyway. I'd be OK with declaring it as a more generic function pointer type, perhaps "void (*funcptr) ()". However, given that a cast is going to be necessary anyway, it seems like this is mostly useless churn... regards, tom lane
В списке pgsql-hackers по дате отправления: