mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
6f4bdf8152
While decoding the multi-insert WAL we can't clean the toast untill we get the last insert of that WAL record. Now if we stream the changes before we get the last change, the memory for toast chunks won't be released and we expect the txn to have streamed all changes after streaming. This restriction is mainly to ensure the correctness of streamed transactions and it doesn't seem worth uplifting such a restriction just to allow this case because anyway we will stream the transaction once such an insert is complete. Previously we were using two different flags (one for toast tuples and another for speculative inserts) to indicate partial changes. Now instead we replaced both of them with a single flag to indicate partial changes. Reported-by: Pavan Deolasee Author: Dilip Kumar Reviewed-by: Pavan Deolasee, Amit Kapila Discussion: https://postgr.es/m/CABOikdN-_858zojYN-2tNcHiVTw-nhxPwoQS4quExeweQfG1Ug@mail.gmail.com |
||
---|---|---|
.. | ||
binary.out | ||
concurrent_ddl_dml.out | ||
concurrent_stream.out | ||
ddl.out | ||
decoding_in_xact.out | ||
decoding_into_rel.out | ||
delayed_startup.out | ||
messages.out | ||
mxact.out | ||
oldest_xmin.out | ||
ondisk_startup.out | ||
permissions.out | ||
prepared.out | ||
replorigin.out | ||
rewrite.out | ||
slot.out | ||
snapshot_transfer.out | ||
spill.out | ||
stats.out | ||
stream.out | ||
subxact_without_top.out | ||
time.out | ||
toast.out | ||
truncate.out | ||
twophase_snapshot.out | ||
twophase_stream.out | ||
twophase.out | ||
xact.out |