use the malloc macros in pg_dump.c - Mailing list pgsql-hackers

From Peter Smith
Subject use the malloc macros in pg_dump.c
Date
Msg-id CAHut+PvpGPDLhkHAoxw_g3jdrYxA1m16a8uagbgH3TGWSKtXNQ@mail.gmail.com
Whole thread Raw
Responses Re: use the malloc macros in pg_dump.c
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: walsender: Assert MyReplicationSlot is set before use
Next
From: Michael Paquier
Date:
Subject: Re: Add expressions to pg_restore_extended_stats()