postgresql/src/include/replication
Alvaro Herrera 15cac3a523 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 df9f682c7b 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
2020-01-17 18:00:39 -03:00
..
basebackup.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
decode.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logical.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalfuncs.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicallauncher.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalproto.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalrelation.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalworker.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
message.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
origin.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
output_plugin.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pgoutput.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
reorderbuffer.h Set ReorderBufferTXN->final_lsn more eagerly 2020-01-17 18:00:39 -03:00
slot.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
snapbuild.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
syncrep.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
walreceiver.h walreceiver uses a temporary replication slot by default 2020-01-14 14:40:41 +01:00
walsender.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
walsender_private.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
worker_internal.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00