postgresql/src/backend/replication/logical
David Rowley a63bbc811d Use stack-allocated StringInfoDatas, where possible
6d0eba662 already did most of the changes, but some new ones snuck in
just prior to that commit, so these got missed.

Having these short-lived StringInfoDatas on the stack rather than having
them get palloc'd by makeStringInfo() is simply for performance as it
saves doing a 2nd palloc.

Since this code is new to v19, it makes sense to improve it now rather
than wait until we branch as having v19 and v20 differ here just makes it
harder to backpatch fixes in this area.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/adt4wpj4FZwR+S7I@ip-10-97-1-34.eu-west-3.compute.internal
2026-04-13 10:43:19 +12:00
..
applyparallelworker.c Remove redundant SetLatch() calls in interrupt handling functions 2026-04-02 23:55:30 +09:00
conflict.c Avoid including vacuum.h in tableam.h and heapam.h. 2026-03-31 12:43:52 -05:00
decode.c Allow logical replication snapshots to be database-specific 2026-04-07 12:31:18 +02:00
launcher.c Reserve replication slots specifically for REPACK 2026-04-07 16:55:29 +02:00
logical.c Adjust log level of logical decoding messages by context 2026-04-10 22:59:34 +09:00
logicalctl.c Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
logicalfuncs.c Reserve replication slots specifically for REPACK 2026-04-07 16:55:29 +02:00
Makefile Toggle logical decoding dynamically based on logical slot presence. 2025-12-23 10:13:16 -08:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
message.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
origin.c Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
proto.c Use palloc_object() and palloc_array() in more areas of the logical replication. 2026-03-06 10:49:50 -08:00
relation.c Stop including {brin,gin}_tuple.h in tuplesort.h 2026-01-12 18:09:49 +01:00
reorderbuffer.c Remove obsolete speculative insert cleanup in ReorderBuffer. 2026-03-16 10:14:22 +05:30
sequencesync.c Use stack-allocated StringInfoDatas, where possible 2026-04-13 10:43:19 +12:00
slotsync.c Fix slotsync worker blocking promotion when stuck in wait 2026-04-08 11:22:21 +09:00
snapbuild.c Adjust log level of logical decoding messages by context 2026-04-10 22:59:34 +09:00
syncutils.c Switch SysCacheIdentifier to a typedef enum 2026-02-18 09:58:38 +09:00
tablesync.c Add target_relid parameter to pg_get_publication_tables(). 2026-04-02 11:34:50 -07:00
worker.c Avoid including vacuum.h in tableam.h and heapam.h. 2026-03-31 12:43:52 -05:00