mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
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
This commit is contained in:
@@ -1473,7 +1473,7 @@ pgoutput_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
|
||||
if (change->data.tp.oldtuple)
|
||||
{
|
||||
old_slot = relentry->old_slot;
|
||||
ExecStoreHeapTuple(&change->data.tp.oldtuple->tuple, old_slot, false);
|
||||
ExecStoreHeapTuple(change->data.tp.oldtuple, old_slot, false);
|
||||
|
||||
/* Convert tuple if needed. */
|
||||
if (relentry->attrmap)
|
||||
@@ -1488,7 +1488,7 @@ pgoutput_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
|
||||
if (change->data.tp.newtuple)
|
||||
{
|
||||
new_slot = relentry->new_slot;
|
||||
ExecStoreHeapTuple(&change->data.tp.newtuple->tuple, new_slot, false);
|
||||
ExecStoreHeapTuple(change->data.tp.newtuple, new_slot, false);
|
||||
|
||||
/* Convert tuple if needed. */
|
||||
if (relentry->attrmap)
|
||||
|
Reference in New Issue
Block a user