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

The idea is to encourage the use of newer routines across the tree, as
these offer stronger type-safety guarantees than raw palloc().

Similar work has been done in commits 1b105f9472bd, 0c3c5c3b06a3,
31d3847a37be, and 4f7dacc5b82a. This commit extends those changes to
more locations within src/backend/replication/logical/.

Author: Peter Smith <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Reviewed-by: Hayato Kuroda <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Discussion: 
https://postgr.es/m/cahut+pv4n7vpxo18+nar1r9rgvr8b0btwtkoece2pffoxgm...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/50ea4e09b6c2331b4cc6434fa12b43bc62de682c

Modified Files
--------------
src/backend/replication/logical/proto.c         |  2 +-
src/backend/replication/logical/reorderbuffer.c |  8 ++++----
src/backend/replication/logical/snapbuild.c     |  7 ++++---
src/backend/replication/logical/tablesync.c     |  4 ++--
src/backend/replication/logical/worker.c        | 14 +++++++-------
5 files changed, 18 insertions(+), 17 deletions(-)

Reply via email to