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: 'Masahiko Sawada' <sawada.mshk@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Duncan Sands <duncan.sands@deepbluecap.com>, "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>, vignesh C <vignesh21@gmail.com>
Date: 2025-06-06T06:22:45Z
Lists: pgsql-bugs
Dear Sawada-san, > > 1. > > USE_ASSERT_CHECKING has not been used to change the value yet. The main > usage is > > to call debug functions in debug build. > > I think we have a similar precedent such as MT_NRELS_HASH to improve > the test coverages. Oh, good detection, it seems a typical way. > > 2. > > If we add tests which is usable only for debug build, it must be run only when it > > is enabled. IIUC such test does not exist yet. > > I think we need to test cases not to check if we reach a specific code > point but to check if we can get the correct results even if we've > executed various code paths. As for this bug, it is better to check > that it works properly in a variety of cases. That way, we can check > overflow cases and non-overflow cases also in test cases added in the > future, improving the test coverage more. 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