Re: Making jsonb_agg() faster

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chao Li <li.evan.chao@gmail.com>
Cc: jian he <jian.universality@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-12-07T16:58:01Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix jsonb_object_agg crash after eliminating null-valued pairs.

  2. Micro-optimize datatype conversions in datum_to_jsonb_internal.

  3. Remove fundamentally-redundant processing in jsonb_agg() et al.

  4. Revise APIs for pushJsonbValue() and associated routines.

  5. Add a macro for the declared typlen of type timetz.

Chao Li <li.evan.chao@gmail.com> writes:
> On Dec 7, 2025, at 03:00, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I've been thinking of that as an independent issue.  But what I'm
>> inclined to do is add a symbol to date.h, say like
>> ...

> That’s even better than resolving my comment.

Cool, done like that then.

			regards, tom lane