Re: Expand palloc/pg_malloc API - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Expand palloc/pg_malloc API
Date
Msg-id b45f210e-bc31-c800-e825-67e26f4afc08@enterprisedb.com
Whole thread Raw
In response to Re: Expand palloc/pg_malloc API  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: Expand palloc/pg_malloc API
List pgsql-hackers
On 12.08.22 09:31, Peter Eisentraut wrote:
> In talloc, the talloc() function itself allocates an object of a given 
> type.  To allocate something of a specified size, you'd use 
> talloc_size().  So those names won't map exactly.  I'm fine with 
> palloc_object() if that is clearer.

> I think the _ptrtype variant isn't that useful anyway, so if it's 
> confusing we can leave it out.

I have updated this patch set to rename the _obj() functions to 
_object(), and I have dropped the _ptrtype() variants.

I have also split the patch to put the new API and the example uses into 
separate patches.
Attachment

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: CI and test improvements
Next
From: Peter Geoghegan
Date:
Subject: Re: effective_multixact_freeze_max_age issue