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
v1-0001-use-the-malloc-macros-for-arrays-and-objects.patch
Description: Binary data
