From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Amit Langote <amitlan@postgresql.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Some refactoring to export json(b) conversion functions
Date: Thu, 5 Oct 2023 11:13:54 +0200
Message-ID: <202310050913.s6zyrpyuy7yq@alvherre.pgsql> (raw)
In-Reply-To: <20230808174110.oq3iymllsv6amkih@alvherre.pgsql>
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í"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: alvherre@alvh.no-ip.org, amitlan@postgresql.org, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Some refactoring to export json(b) conversion functions
In-Reply-To: <202310050913.s6zyrpyuy7yq@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox