RE: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5
Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Duncan Sands <duncan.sands@deepbluecap.com>, 'vignesh C' <vignesh21@gmail.com>, Masahiko
Sawada <sawada.mshk@gmail.com>
Date: 2025-06-02T11:35:36Z
Lists: pgsql-bugs
Dear Amit, Duncan, Vignesh, Sawada-san, I searched on GitHub and confirmed that no extensions use sizeof(ReorderBufferTXN). Based on that, can we proceed with the fix for backbenches? Note that I checked only repositories that are opened on GitHub. Proprietary ones and hosting on other services cannot be guaranteed. How I search =========== I searched on github with "sizeof(ReorderBufferTXN)", and 259 files were found. All of them were either "reorderbuffer.c" or "reorderbuffer.cpp". reorderbuffer.c came from the forked postgres repos, and "reorderbuffer.cpp" came from the openGauss project, which tries to enhance postgres. In both cases, they are server-side code and will rebase community's commits when we update the header file and sizeof(ReorderBufferTXN). In this check, I could not find extensions that refer to the size; only server-side codes were found. Based on that, we could extend the struct ReorderBufferTXN. [1]: https://github.com/search?q=sizeof%28ReorderBufferTXN%29&type=code [2]: https://github.com/opengauss-mirror/openGauss-server/blob/master/src/gausskernel/storage/replication/logical/reorderbuffer.cpp Best regards, Hayato Kuroda FUJITSU LIMITED
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix cache-dependent test failures in logical decoding.
- 87819f766f37 13.22 landed
-
Fix re-distributing previously distributed invalidation messages during logical decoding.
- d87d07b7ad3b 18.0 landed
- 45c357e0e85d 17.6 landed
- b2ae077205e1 16.10 landed
- fc0fb77c550f 15.14 landed
- 983b3636259b 14.19 landed
- 1230be12f086 13.22 landed
-
Fix data loss in logical replication.
- 247ee94150b6 13.21 cited
- 4909b38af034 18.0 cited