Re: pgsql: Some refactoring to export json(b) conversion functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgsql: Some refactoring to export json(b) conversion functions
Date
Msg-id 202310050913.s6zyrpyuy7yq@alvherre.pgsql
Whole thread Raw
In response to Re: pgsql: Some refactoring to export json(b) conversion functions  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On 2023-Aug-08, Alvaro Herrera wrote:

> One idea that Tom floated was to allow the JsonLexContext to be
> optionally stack-allocated.  That reduces palloc() traffic; but some
> callers do need it to be palloc'ed.  Here's a patch that does it that
> way, and adds a freeing routine that knows what to do in either case.
> It may make sense to do some further analysis and remove useless free
> calls.

Pushed this, after some further tweaking.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"La verdad no siempre es bonita, pero el hambre de ella sí"



pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: [PoC] pg_upgrade: allow to upgrade publisher node
Next
From: Andrei Lepikhov
Date:
Subject: Re: Removing unneeded self joins