Re: WIP Patch: Add a function that returns binary JSONB as a bytea

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christian Ohler <ohler@shift.com>, sfrost@snowman.net, Kevin Van <kevinvan@shift.com>, pgsql-hackers@postgresql.org
Date: 2018-11-02T12:42:02Z
Lists: pgsql-hackers
> On 2 Nov 2018, at 04:21, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> (In short, I remain unconvinced that we'd not be better off spending
> our effort on making json_out faster...)

Shooting wildly from the hip, isn't this a case where we can potentially
utilize the JIT infrastructure to speed it up?

cheers ./daniel


Commits

  1. Build de-escaped JSON strings in larger chunks during lexing