Re: use the malloc macros in pg_dump.c

Peter Smith <smithpb2250@gmail.com>

From: Peter Smith <smithpb2250@gmail.com>
To: Aleksander Alekseev <aleksander@tigerdata.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-03T02:29:12Z
Lists: pgsql-hackers

Attachments

PSA v2 with more of the same kind of malloc changes.

Scope: This addresses all those I could find in the src/bin/pg_dump/* folder.

Note, there were a few examples of simple char * buffer mallocs I that
did not change, because it did not seem useful to do so.

======
Kind Regards,
Peter Smith.
Fujitsu Australia

Commits

  1. pg_dump: Use pg_malloc_object() and pg_malloc_array()