postgresql/contrib/test_decoding/expected
Masahiko Sawada 52f1d6730b Fix memory counter update in ReorderBuffer.
Commit 5bec1d6bc5 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 were cases
where it further subtracted the memory counter from zero, resulting in
an assertion failure.

This change calculates the memory size for each change and updates the
memory usage to precisely the amount that has been freed.

Backpatch to v17, where this was introducd.

Reviewed-by: Amit Kapila, Shlok Kyal
Discussion: https://postgr.es/m/CAD21AoAqkNUvicgKPT_dXzNoOwpPkVTg0QPPxEcWmzT0moCJ1g%40mail.gmail.com
Backpatch-through: 17
2024-08-26 11:00:07 -07:00
..
binary.out
catalog_change_snapshot.out
concurrent_ddl_dml.out
concurrent_stream.out Remove incidental md5() function uses from several tests 2023-07-04 14:31:57 +02:00
ddl.out Revert structural changes to not-null constraints 2024-05-13 11:31:09 +02:00
decoding_in_xact.out Make RelationFlushRelation() work without ResourceOwner during abort 2024-06-06 18:56:28 +03:00
decoding_into_rel.out
delayed_startup.out
messages.out Add flush option to pg_logical_emit_message() 2023-10-18 11:24:59 +09:00
mxact.out
oldest_xmin.out
ondisk_startup.out
permissions.out Add a slot synchronization function. 2024-02-14 09:45:36 +05:30
prepared.out
replorigin.out Fix the misuse of origin filter across multiple pg_logical_slot_get_changes() calls. 2023-09-27 14:32:51 +05:30
rewrite.out
skip_snapshot_restore.out Fix possibility of logical decoding partial transaction changes. 2024-07-11 22:48:23 +09:00
slot_creation_error.out
slot.out Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
snapshot_transfer.out
spill.out
stats.out
stream.out Fix memory counter update in ReorderBuffer. 2024-08-26 11:00:07 -07:00
subxact_without_top.out
time.out
toast.out
truncate.out
twophase_snapshot.out
twophase_stream.out Add STREAM_START/STREAM_STOP for transactional messages during decoding. 2023-10-30 14:36:21 +05:30
twophase.out test_decoding: Remove unnecessary table in twophase test 2023-10-10 17:49:22 +09:00
xact.out