Rename alloc/free functions in reorderbuffer.c
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Rename alloc/free functions in reorderbuffer.c There used to be bespoken pools for these structs to reduce the palloc/pfree overhead, but that was ripped out a long time ago and replaced with the generic, cheaper generational memory allocator (commit a4ccc1cef5). The Get/Return terminology made sense with the pools, as you "got" an object from the pool and "returned" it later, but now it just looks weird. Rename to Alloc/Free. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/c9e43d2d-8e83-444f-b111-430377368989@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/decode.c | modified | +13 −13 |
| src/backend/replication/logical/reorderbuffer.c | modified | +44 −45 |
| src/include/replication/reorderbuffer.h | modified | +7 −8 |
Discussion
- Rename functions to alloc/free things in reorderbuffer.c 3 messages · 2025-03-12