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í"