Re: More new SQL/JSON item methods
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Jeevan Chalke <jeevan.chalke@enterprisedb.com>,
Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-01-03T12:01:23Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Rationalize and improve error messages for some jsonpath items
- 92d2ab7554f9 17.0 landed
-
Clean up a bug in sql/json items commit 66ea94e8e6
- 06a66d87dbc7 17.0 landed
-
Implement various jsonpath methods
- 66ea94e8e606 17.0 cited
-
Reorganise jsonpath operators and methods
- 283a95da9236 17.0 landed
-
Add numeric_int8_opt_error() to optionally suppress errors
- c1b9e1e56d8c 17.0 landed
On 07.12.23 14:24, Jeevan Chalke wrote: > We have the same issue with integer conversion and need a fix. > > Unfortunately, I was using int8in() for the conversion of numeric > values. We should be using numeric_int8() instead. However, there is no > opt_error version of the same. > > So, I have introduced a numeric_int8_opt_error() version just like we > have one for int4, i.e. numeric_int4_opt_error(), to suppress the error. > These changes are in the 0001 patch. (All other patch numbers are now > increased by 1) > > I have used this new function to fix this reported issue and used > numeric_int4_opt_error() for integer conversion. I have committed the 0001 and 0002 patches for now. The remaining patches look reasonable to me, but I haven't reviewed them in detail.