Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, Dmitry Mityugov <d.mityugov@postgrespro.ru>, pgsql-hackers@postgresql.org
Date: 2025-07-16T00:01:57Z
Lists: pgsql-hackers
On Tue, Jul 15, 2025 at 7:52 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I'm not sure how likely such scenarios are, but it doesn't seem
> zero-risk.  And if we do hundreds of these, the odds of trouble
> will increase.

I agree that it's not zero-risk -- hardly anything ever is. Still
seems worth considering.

-- 
Peter Geoghegan



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Clarify the ra != rb case in compareJsonbContainers().

  2. Silence uninitialized-value warnings in compareJsonbContainers().