postgresql/src/bin/pg_upgrade
Michael Paquier 574bee89c2 Use pg_malloc_object() and pg_alloc_array() variants in frontend code
This commit updates the frontend tools (src/bin/, contrib/ and
src/test/) to use the memory allocation variants based on
pg_malloc_object() and pg_malloc_array() in various code paths.  This
does not cover all the allocations, but a good chunk of them.

Like all the changes of this kind (31d3847a37, etc.), this should
encourage any future code to use this new style.

Author: Andreas Karlsson <andreas@proxel.se>
Discussion: https://postgr.es/m/cfb645da-6b3a-4f22-9bcc-5bc46b0e9c61@proxel.se
2026-02-27 18:59:41 +09:00
..
po Update copyright for 2026 2026-01-01 13:24:10 -05:00
t pg_upgrade: Optimize logical replication slot caught-up check. 2026-02-04 17:11:27 -08:00
.gitignore Re-add locally-generated files in pg_upgrade's .gitignore and Makefile 2022-06-15 15:36:16 +09:00
check.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
controldata.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
dump.c pg_upgrade: Use max_protocol_version=3.0 for older servers 2026-02-24 14:01:37 -08:00
exec.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
file.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
function.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
IMPLEMENTATION Improve some wording in pg_upgrade/IMPLEMENTATION 2023-10-11 13:54:33 +09:00
info.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
Makefile Widen MultiXactOffset to 64 bits 2025-12-09 13:53:03 +02:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
multixact_read_v18.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
multixact_read_v18.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
multixact_rewrite.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls.mk Add missing source file to pg_upgrade/nls.mk 2025-04-11 10:26:51 +02:00
option.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
parallel.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
pg_upgrade.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_upgrade.h pg_upgrade: Use max_protocol_version=3.0 for older servers 2026-02-24 14:01:37 -08:00
relfilenumber.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
server.c pg_upgrade: Use max_protocol_version=3.0 for older servers 2026-02-24 14:01:37 -08:00
slru_io.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
slru_io.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tablespace.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
task.c Use pg_malloc_object() and pg_alloc_array() variants in frontend code 2026-02-27 18:59:41 +09:00
TESTING pg_upgrade: Add --swap for faster file transfer. 2025-03-25 16:02:35 -05:00
util.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
version.c pg_upgrade: Use max_protocol_version=3.0 for older servers 2026-02-24 14:01:37 -08:00