Re: AllocSetContextCreate changes breake extensions

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org, Christoph Berg <cb@df7cb.de>
Date: 2018-10-12T18:50:46Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2018-10-12 13:51:53 -0400, Tom Lane wrote:
>> Shall we also backpatch the ALLOCSET_*_SIZES macros as Christoph
>> suggested?  I'm not convinced of the usefulness of that, since
>> extensions would still have to cope with them not being present
>> when building against existing minor releases.

> I'd do so. Many extensions are fine just building against a relatively
> new minor release. Won't help extension authors in the next few months,
> but after that...

I'm still not very convinced, but it's easy and harmless, so done.

			regards, tom lane


Commits

  1. Back-patch addition of the ALLOCSET_FOO_SIZES macros.

  2. Simplify use of AllocSetContextCreate() wrapper macro.

  3. Rethink MemoryContext creation to improve performance.