Use allocation macros in the logical replication code

Peter Smith <smithpb2250@gmail.com>

From: Peter Smith <smithpb2250@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-04T00:14:53Z
Lists: pgsql-hackers

Attachments

Hi,

Here is a patch that modifies some allocation code to make use of the
appropriate macros.

Scope: src/backend/replication/logical/*

PSA v1

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

Commits

  1. Use palloc_object() and palloc_array() in more areas of the logical replication.