aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeWindowAgg.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-10-03 22:11:36 -0700
committerAndres Freund <andres@anarazel.de>2016-10-03 22:12:31 -0700
commit76c0b73df6c481a29cf6e45bebeafd6d71957f08 (patch)
tree14865aa6c42c27cde80202126ac145a45a295857 /src/backend/executor/nodeWindowAgg.c
parent993d94c59038fb80068a2b7780a1062dcaa2bb4f (diff)
downloadpostgresql-76c0b73df6c481a29cf6e45bebeafd6d71957f08.tar.gz
postgresql-76c0b73df6c481a29cf6e45bebeafd6d71957f08.zip
Correct logical decoding restore behaviour for subtransactions.
Before initializing iteration over a subtransaction's changes, the last few changes were not spilled to disk. That's correct if the transaction didn't spill to disk, but otherwise... This bug can lead to missed or misorderd subtransaction contents when they were spilled to disk. Move spilling of the remaining in-memory changes to ReorderBufferIterTXNInit(), where it can easily be applied to the top transaction and, if present, subtransactions. Since this code had too many bugs already, noticeably increase test coverage. Fixes: #14319 Reported-By: Huan Ruan Discussion: <20160909012610.20024.58169@wrigleys.postgresql.org> Backport: 9,4-, where logical decoding was added
Diffstat (limited to 'src/backend/executor/nodeWindowAgg.c')
0 files changed, 0 insertions, 0 deletions