Re: Additional comments around need_escapes in pg_parse_json()

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Additional comments around need_escapes in pg_parse_json()
Date: 2024-12-21 14:56:57
Message-ID: 86c028c0-faa7-4b75-aa89-f963f56a29e7@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2024-12-20 Fr 5:21 AM, Corey Huinker wrote:
> I recently had occasion to use the pg_parse_json() function for
> creating input functions for pg_ndistinct and pg_dependencies.
>
> While it is obvious now that I should have been parsing with
> need_escapes=true, it wasn't obvious from the outset, and so I'm
> proposing adding a few comments to help the next person come to that
> conclusion sooner than I did.

Comments are not quite accurate, but I'll look at cleaning them up and
adding them.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2024-12-21 15:28:26 Re: Eagerly scan all-visible pages to amortize aggressive vacuum
Previous Message Junwang Zhao 2024-12-21 12:51:04 Re: SQL Property Graph Queries (SQL/PGQ)