aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeValuesscan.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-01-17 18:00:39 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-01-17 18:00:39 -0300
commit15cac3a523cc06dba1331635f3f67445fa202a44 (patch)
tree68d1044158b37a7aaf523a4ce4fca3ed16fce9b1 /src/backend/executor/nodeValuesscan.c
parent543852fd8bf0adc56192aeb25ff83f1a12c30368 (diff)
downloadpostgresql-15cac3a523cc06dba1331635f3f67445fa202a44.tar.gz
postgresql-15cac3a523cc06dba1331635f3f67445fa202a44.zip
Set ReorderBufferTXN->final_lsn more eagerly
... specifically, set it incrementally as each individual change is spilled down to disk. This way, it is set correctly when the transaction disappears without trace, ie. without leaving an XACT_ABORT wal record. (This happens when the server crashes midway through a transaction.) Failing to have final_lsn prevents ReorderBufferRestoreCleanup() from working, since it needs the final_lsn in order to know the endpoint of its iteration through spilled files. Commit df9f682c7bf8 already tried to fix the problem, but it didn't set the final_lsn in all cases. Revert that, since it's no longer needed. Author: Vignesh C Reviewed-by: Amit Kapila, Dilip Kumar Discussion: https://postgr.es/m/CALDaNm2CLk+K9JDwjYST0sPbGg5AQdvhUt0jbKyX_HdAE0jk3A@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeValuesscan.c')
0 files changed, 0 insertions, 0 deletions