pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Set ReorderBufferTXN->final_lsn more eagerly 7+ messages / 1 participants [nested] [flat]
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/15cac3a523cc06dba1331635f3f67445fa202a44 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bc2140627ff14c207a0af990b8ea3860e188e6b1 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fe955ebee0f206117634521778efe10608cb6552 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e3154aae3c2604633a4ce8ffedf542999565c787 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cdb14154bb00e711152f4011417b3e44ea85adea Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/58997ace5b372cc137770292f462d5b8854c832d Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Set ReorderBufferTXN->final_lsn more eagerly @ 2020-01-17 21:03 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-01-17 21:03 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/20a1dc1e311d795fa37e5e4bd4f3d49157d78dba Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 29 ++++++++++--------------- src/include/replication/reorderbuffer.h | 7 +++--- 2 files changed, 16 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-01-17 21:03 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-01-17 21:03 pgsql: Set ReorderBufferTXN->final_lsn more eagerly Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox