Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Dmitry Mityugov <d.mityugov@postgrespro.ru>, pgsql-hackers@postgresql.org
Date: 2025-07-12T18:04:53Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2025-07-12 13:42:54 -0400, Tom Lane wrote: >> I don't care for this patch: replacing an Assert with pg_assume just >> seems like a very bad idea. > That shouldn't be a problem - pg_assume() is defined to be an Assert() in > USE_ASSERT_CHECKING builds. Ah, my bad. But there's still the question of exactly what reasoning the compiler is using to arrive at the conclusion that it need not warn given these assertions, and whether we want to rely on that reasoning not changing. I'd prefer to simplify matters. regards, tom lane
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Clarify the ra != rb case in compareJsonbContainers().
- 2a3a3964328a 19 (unreleased) landed
-
Silence uninitialized-value warnings in compareJsonbContainers().
- f32e45641460 15.14 landed
- aad1617b76ae 19 (unreleased) landed
- 8254b7e33be9 14.19 landed
- 6c93bf735ce1 13.22 landed
- 5db55e13f210 16.10 landed
- 5a2139a90690 17.6 landed
- 0b6dfce0ce4d 18.0 landed