pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix WAL format incompatibility introduced by backpatching of 52a 5+ messages / 1 participants [nested] [flat]
* pgsql: Fix WAL format incompatibility introduced by backpatching of 52a @ 2019-03-24 12:59 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Alexander Korotkov @ 2019-03-24 12:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix WAL format incompatibility introduced by backpatching of 52ac6cd2d0 52ac6cd2d0 added new field to ginxlogDeletePage and was backpatched to 9.4. That led to problems when patched postgres instance applies WAL records generated by non-patched one. WAL records generated by non-patched instance don't contain new field, which patched one is expecting to see. Thankfully, we can distinguish patched and non-patched WAL records by their data size. If we see that WAL record is generated by non-patched instance, we skip processing of new field. This commit comes with some assertions. In particular, if it appears that on some platform struct data size didn't change then static assertion will trigger. Reported-by: Simon Riggs Discussion: https://postgr.es/m/CANP8%2Bj%2BK4whxf7ET7%2BgO%2BG-baC3-WxqqH%3DnV4X2CgfEPA3Yu3g%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Simon Riggs, Alvaro Herrera Backpatch-through: 9.4 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/89f39736f4845e81f350893dd59fd52cedab8b39 Modified Files -------------- src/backend/access/gin/ginxlog.c | 19 ++++++++++++++++++- src/include/access/ginxlog.h | 10 ++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix WAL format incompatibility introduced by backpatching of 52a @ 2019-03-24 12:59 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Alexander Korotkov @ 2019-03-24 12:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix WAL format incompatibility introduced by backpatching of 52ac6cd2d0 52ac6cd2d0 added new field to ginxlogDeletePage and was backpatched to 9.4. That led to problems when patched postgres instance applies WAL records generated by non-patched one. WAL records generated by non-patched instance don't contain new field, which patched one is expecting to see. Thankfully, we can distinguish patched and non-patched WAL records by their data size. If we see that WAL record is generated by non-patched instance, we skip processing of new field. This commit comes with some assertions. In particular, if it appears that on some platform struct data size didn't change then static assertion will trigger. Reported-by: Simon Riggs Discussion: https://postgr.es/m/CANP8%2Bj%2BK4whxf7ET7%2BgO%2BG-baC3-WxqqH%3DnV4X2CgfEPA3Yu3g%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Simon Riggs, Alvaro Herrera Backpatch-through: 9.4 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e23d44016d5193bb824fd637d277cbaa1fc6002c Modified Files -------------- src/backend/access/gin/ginxlog.c | 19 ++++++++++++++++++- src/include/access/ginxlog.h | 10 ++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix WAL format incompatibility introduced by backpatching of 52a @ 2019-03-24 13:00 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Alexander Korotkov @ 2019-03-24 13:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix WAL format incompatibility introduced by backpatching of 52ac6cd2d0 52ac6cd2d0 added new field to ginxlogDeletePage and was backpatched to 9.4. That led to problems when patched postgres instance applies WAL records generated by non-patched one. WAL records generated by non-patched instance don't contain new field, which patched one is expecting to see. Thankfully, we can distinguish patched and non-patched WAL records by their data size. If we see that WAL record is generated by non-patched instance, we skip processing of new field. This commit comes with some assertions. In particular, if it appears that on some platform struct data size didn't change then static assertion will trigger. Reported-by: Simon Riggs Discussion: https://postgr.es/m/CANP8%2Bj%2BK4whxf7ET7%2BgO%2BG-baC3-WxqqH%3DnV4X2CgfEPA3Yu3g%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Simon Riggs, Alvaro Herrera Backpatch-through: 9.4 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f8a69a68a08715ab5101a9a5eed4e08ba0b3946b Modified Files -------------- src/backend/access/gin/ginxlog.c | 19 ++++++++++++++++++- src/include/access/gin_private.h | 10 ++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix WAL format incompatibility introduced by backpatching of 52a @ 2019-03-24 13:00 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Alexander Korotkov @ 2019-03-24 13:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix WAL format incompatibility introduced by backpatching of 52ac6cd2d0 52ac6cd2d0 added new field to ginxlogDeletePage and was backpatched to 9.4. That led to problems when patched postgres instance applies WAL records generated by non-patched one. WAL records generated by non-patched instance don't contain new field, which patched one is expecting to see. Thankfully, we can distinguish patched and non-patched WAL records by their data size. If we see that WAL record is generated by non-patched instance, we skip processing of new field. This commit comes with some assertions. In particular, if it appears that on some platform struct data size didn't change then static assertion will trigger. Reported-by: Simon Riggs Discussion: https://postgr.es/m/CANP8%2Bj%2BK4whxf7ET7%2BgO%2BG-baC3-WxqqH%3DnV4X2CgfEPA3Yu3g%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Simon Riggs, Alvaro Herrera Backpatch-through: 9.4 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cda5f6575306e50136a5f8ce3f76d9b2d772b738 Modified Files -------------- src/backend/access/gin/ginxlog.c | 19 ++++++++++++++++++- src/include/access/gin_private.h | 10 ++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix WAL format incompatibility introduced by backpatching of 52a @ 2019-03-24 13:34 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Alexander Korotkov @ 2019-03-24 13:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix WAL format incompatibility introduced by backpatching of 52ac6cd2d0 52ac6cd2d0 added new field to ginxlogDeletePage and was backpatched to 9.4. That led to problems when patched postgres instance applies WAL records generated by non-patched one. WAL records generated by non-patched instance don't contain new field, which patched one is expecting to see. Thankfully, we can distinguish patched and non-patched WAL records by their data size. If we see that WAL record is generated by non-patched instance, we skip processing of new field. This commit comes with some assertions. In particular, if it appears that on some platform struct data size didn't change then static assertion will trigger. Reported-by: Simon Riggs Discussion: https://postgr.es/m/CANP8%2Bj%2BK4whxf7ET7%2BgO%2BG-baC3-WxqqH%3DnV4X2CgfEPA3Yu3g%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Simon Riggs, Alvaro Herrera Backpatch-through: 9.4 Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d1166af192ed0bb40ed9dc53d4e799117403233b Modified Files -------------- src/backend/access/gin/ginxlog.c | 18 ++++++++++++++++++ src/include/access/gin_private.h | 14 ++++++++++++++ 2 files changed, 32 insertions(+) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-03-24 13:34 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-03-24 12:59 pgsql: Fix WAL format incompatibility introduced by backpatching of 52a Alexander Korotkov <akorotkov@postgresql.org> 2019-03-24 12:59 pgsql: Fix WAL format incompatibility introduced by backpatching of 52a Alexander Korotkov <akorotkov@postgresql.org> 2019-03-24 13:00 pgsql: Fix WAL format incompatibility introduced by backpatching of 52a Alexander Korotkov <akorotkov@postgresql.org> 2019-03-24 13:00 pgsql: Fix WAL format incompatibility introduced by backpatching of 52a Alexander Korotkov <akorotkov@postgresql.org> 2019-03-24 13:34 pgsql: Fix WAL format incompatibility introduced by backpatching of 52a Alexander Korotkov <akorotkov@postgresql.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