| From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | use the malloc macros in pg_dump.c |
| Date: | 2026-02-02 07:04:01 |
| Message-ID: | CAHut+PvpGPDLhkHAoxw_g3jdrYxA1m16a8uagbgH3TGWSKtXNQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| v1-0001-use-the-malloc-macros-for-arrays-and-objects.patch | application/octet-stream | 22.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-02-02 07:11:55 | Re: Add expressions to pg_restore_extended_stats() |
| Previous Message | Chao Li | 2026-02-02 06:49:06 | Re: walsender: Assert MyReplicationSlot is set before use |