Assorted examples of expanded type-safer palloc/pg_malloc API

Peter Eisentraut <peter@eisentraut.org>

Commit: 5015e1e1b58f81a036e4ad16291ef4b3bb7a596c
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-09-12T06:45:03Z
Releases: 16.0
Assorted examples of expanded type-safer palloc/pg_malloc API

This adds some uses of the new palloc/pg_malloc variants here and
there as a demonstration and test.  This is kept separate from the
actual API patch, since the latter might be backpatched at some point.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/bb755632-2a43-d523-36f8-a1e7a389a907@enterprisedb.com

Files

Discussion