Add repalloc0 and repalloc0_array
commitb4b7ce8061d34cea2b4915c41403b2a74d5fde0e
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 12 Nov 2022 19:31:27 +0000 (12 20:31 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 12 Nov 2022 19:34:44 +0000 (12 20:34 +0100)
tree127e3012c81c377513fc234f0b8af27f16cf0c31
parent30d98e14a88930c6d9658525fd5e6722e70a02e6
Add repalloc0 and repalloc0_array

These zero out the space added by repalloc.  This is a common pattern
that is quite hairy to code by hand.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/b66dfc89-9365-cb57-4e1f-b7d31813eeec@enterprisedb.com
src/backend/executor/nodeHash.c
src/backend/libpq/be-fsstubs.c
src/backend/optimizer/util/placeholder.c
src/backend/optimizer/util/relnode.c
src/backend/parser/parse_param.c
src/backend/storage/lmgr/lwlock.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/cache/typcache.c
src/backend/utils/mmgr/mcxt.c
src/include/utils/palloc.h