| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Be clearer about when jsonapi's need_escapes is needed |
| Date: | 2025-01-19 14:20:27 |
| Message-ID: | E1tZWA7-002O6i-BQ@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Be clearer about when jsonapi's need_escapes is needed
Most operations beyond pure json parsing need to set need_escapes to
true to get access to field names and string scalars. Document this
fact more explicitly.
Slightly tweaked patch from:
Author: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Discussion: https://postgr.es/m/CADkLM=c49Vkfg2+A8ubSuEtaGEjuaKZXCA6SrXA8kdwHjx3uxQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ea5ff5833c7d4ae727a5acfc590c848b520775d0
Modified Files
--------------
src/common/jsonapi.c | 6 +++++-
src/include/common/jsonapi.h | 15 +++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-01-19 19:00:27 | pgsql: Remove PrintBufferDescs() and PrintPinnedBufs(). |
| Previous Message | Andrew Dunstan | 2025-01-18 14:34:48 | pgsql: Fix readlink() for non-PostgreSQL junction points on Windows. |