Assorted examples of expanded type-safer palloc/pg_malloc API
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 12 Sep 2022 06:31:56 +0000 (08:31 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 12 Sep 2022 06:45:03 +0000 (08:45 +0200)
commit5015e1e1b58f81a036e4ad16291ef4b3bb7a596c
tree86ee608e961dc830e733c534db089f1e45706414
parent2016055a92f26d648aba9f66d26cc0bcd1619eff
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
12 files changed:
contrib/dblink/dblink.c
src/backend/access/brin/brin.c
src/backend/access/gin/ginfast.c
src/backend/commands/indexcmds.c
src/backend/commands/prepare.c
src/backend/executor/nodeHash.c
src/backend/tcop/postgres.c
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_backup_tar.c
src/bin/psql/startup.c
src/common/config_info.c
src/common/controldata_utils.c