pgsql: Fix reorder buffer memory accounting for toast changes.

2021-09-12 Thread Amit Kapila
Fix reorder buffer memory accounting for toast changes. While processing toast changes in logical decoding, we rejigger the tuple change to point to in-memory toast tuples instead to on-disk toast tuples. And, to make sure the memory accounting is correct, we were subtracting the old change size a

pgsql: Fix reorder buffer memory accounting for toast changes.

2021-09-12 Thread Amit Kapila
Fix reorder buffer memory accounting for toast changes. While processing toast changes in logical decoding, we rejigger the tuple change to point to in-memory toast tuples instead to on-disk toast tuples. And, to make sure the memory accounting is correct, we were subtracting the old change size a

pgsql: Fix reorder buffer memory accounting for toast changes.

2021-09-12 Thread Amit Kapila
Fix reorder buffer memory accounting for toast changes. While processing toast changes in logical decoding, we rejigger the tuple change to point to in-memory toast tuples instead to on-disk toast tuples. And, to make sure the memory accounting is correct, we were subtracting the old change size a