Re: Add returns_nonnull to infallible allocators

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Tristan Partin <tristan(at)partin(dot)io>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add returns_nonnull to infallible allocators
Date: 2026-10-19 08:24:58
Message-ID: 896b3390-8975-43d6-93d7-a07d647c73e0@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 07.10.26 07:43, Tristan Partin wrote:
> Here is a v3 that adds missing annotations for the following functions
> in palloc.h:
>
> - repalloc
> - repalloc0
> - repalloc_mul
> - repalloc_huge
>
> And for fe_memutils.h:
>
> - pg_malloc
> - pg_malloc0
> - pg_malloc_mul
> - pg_malloc0_mul
> - palloc
> - palloc0
> - palloc_mul
> - palloc0_mul

Committed.

I also added the annotation to the frontend version of psprintf(). You
only had it for the backend version.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Grujic 2026-10-19 08:30:46 Re: query_int wrongly parses zero-padded input
Previous Message David Geier 2026-10-19 08:18:49 Re: Reducing relcache memory usage 2: shrink sizeof(RelationData)