Use allocation macros in the logical replication code

Use allocation macros in the logical replication code

Edit