pgsql: Fix memory counter update in ReorderBuffer.

2024-08-26 Thread Masahiko Sawada
Fix memory counter update in ReorderBuffer. Commit 5bec1d6bc5e changed the memory usage updates of the ReorderBufferTXN to zero all at once by subtracting txn->size, rather than updating it for each change. However, if TOAST reconstruction data remained in the transaction when freeing it, there we

pgsql: Fix memory counter update in ReorderBuffer.

2024-08-26 Thread Masahiko Sawada
Fix memory counter update in ReorderBuffer. Commit 5bec1d6bc5e changed the memory usage updates of the ReorderBufferTXN to zero all at once by subtracting txn->size, rather than updating it for each change. However, if TOAST reconstruction data remained in the transaction when freeing it, there we