use the malloc macros in pg_dump.c
Peter Smith <smithpb2250@gmail.com>
From: Peter Smith <smithpb2250@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-02T07:04:01Z
Lists: pgsql-hackers
Attachments
- v1-0001-use-the-malloc-macros-for-arrays-and-objects.patch (application/octet-stream) patch v1-0001
Hi. I found that pg_dump.c has many pg_mallocs where the new object/array macros could have been used, but currently they are not. I'm not sure if this was a deliberate or accidental omission. In case it was accidental, here is a patch to modify/simplify all that allocation code. PSA v1. ====== Kind Regards, Peter Smith. Fujitsu Australia
Commits
-
pg_dump: Use pg_malloc_object() and pg_malloc_array()
- 6736dea14afb 19 (unreleased) landed