Convert jsonpath's input function to report errors softly
Andrew Dunstan <andrew@dunslane.net>
Convert jsonpath's input function to report errors softly Reviewed by Tom Lane Discussion: https://postgr.es/m/a8dc5700-c341-3ba8-0507-cc09881e6200@dunslane.net
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonpath.c | modified | +74 −42 |
| src/backend/utils/adt/jsonpath_exec.c | modified | +2 −1 |
| src/backend/utils/adt/jsonpath_gram.y | modified | +62 −25 |
| src/backend/utils/adt/jsonpath_internal.h | modified | +9 −3 |
| src/backend/utils/adt/jsonpath_scan.l | modified | +141 −52 |
| src/include/utils/jsonpath.h | modified | +5 −2 |
| src/test/regress/expected/jsonpath.out | modified | +18 −0 |
| src/test/regress/sql/jsonpath.sql | modified | +11 −0 |
Discussion
- Error-safe user functions 175 messages · 2022-10-03 → 2023-01-03