Remove ReorderBufferTupleBuf structure.
Masahiko Sawada <msawada@postgresql.org>
Remove ReorderBufferTupleBuf structure. Since commit a4ccc1cef, the 'node' and 'alloc_tuple_size' fields of the ReorderBufferTupleBuf structure are no longer used. This leaves only the 'tuple' field in the structure. Since keeping a single-field structure makes little sense, the ReorderBufferTupleBuf is removed entirely. The code is refactored accordingly. No back-patching since these are ABI changes in an exposed structure and functions, and there would be some risk of breaking extensions. Author: Aleksander Alekseev Reviewed-by: Amit Kapila, Masahiko Sawada, Reid Thompson Discussion: https://postgr.es/m/CAD21AoCvnuxiXXfRecp7g9+CeC35POQfhuQeJFr7_9u_Q5jc_Q@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/test_decoding/test_decoding.c | modified | +4 −4 |
| src/backend/replication/logical/decode.c | modified | +13 −13 |
| src/backend/replication/logical/reorderbuffer.c | modified | +43 −46 |
| src/backend/replication/pgoutput/pgoutput.c | modified | +2 −2 |
| src/include/replication/reorderbuffer.h | modified | +6 −25 |
| src/tools/pgindent/typedefs.list | modified | +0 −1 |
Discussion
- Remove unused fields in ReorderBufferTupleBuf 18 messages · 2023-07-26 → 2024-01-29