Re: Potential ABI breakage in upcoming minor releases

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Potential ABI breakage in upcoming minor releases
Дата
Msg-id CAJ7c6TNNFtbZmQsEesG2yTfvM_7hrLv87mz7G1Xo7dWZdha56w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Potential ABI breakage in upcoming minor releases  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Hi,

> Right.  makeNode(), palloc(sizeof), and stack allocation have that problem.
> Allocation wrappers like CreateExecutorState() avoid the problem.  More
> generally, structs allocated in non-extension code are fine.

Perhaps we should consider adding an API like makeResultRelInfo() and
others, one per node. It's going to be boilerplate for sure, but
considering the fact that we already generate some code I don't really
see drawbacks.

-- 
Best regards,
Aleksander Alekseev



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