Re: Potential ABI breakage in upcoming minor releases - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: Potential ABI breakage in upcoming minor releases
Date
Msg-id CAJ7c6TNNFtbZmQsEesG2yTfvM_7hrLv87mz7G1Xo7dWZdha56w@mail.gmail.com
Whole thread Raw
In response to Re: Potential ABI breakage in upcoming minor releases  (Noah Misch <noah@leadboat.com>)
List 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 by date:

Previous
From: Noah Misch
Date:
Subject: Re: Potential ABI breakage in upcoming minor releases
Next
From: Paul Jungwirth
Date:
Subject: Re: SQL:2011 application time