From 283a95da923605c1cc148155db2d865d0801b419 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 3 Jan 2024 11:25:33 +0100 Subject: Reorganise jsonpath operators and methods Various jsonpath operators and methods add various keywords, switch cases, and documentation entries in some order. However, they are not consistent; reorder them for better maintainability or readability. Author: Jeevan Chalke Discussion: https://www.postgresql.org/message-id/flat/CAM2+6=XjTyqrrqHAOj80r0wVQxJSxc0iyib9bPC55uFO9VKatg@mail.gmail.com --- doc/src/sgml/func.sgml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index cec21e42c05..8f2a2315d8e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -17691,43 +17691,43 @@ strict $.**.HR - number . ceiling() + number . abs() number - Nearest integer greater than or equal to the given number + Absolute value of the given number - jsonb_path_query('{"h": 1.3}', '$.h.ceiling()') - 2 + jsonb_path_query('{"z": -0.3}', '$.z.abs()') + 0.3 - number . floor() + number . ceiling() number - Nearest integer less than or equal to the given number + Nearest integer greater than or equal to the given number - jsonb_path_query('{"h": 1.7}', '$.h.floor()') - 1 + jsonb_path_query('{"h": 1.3}', '$.h.ceiling()') + 2 - number . abs() + number . floor() number - Absolute value of the given number + Nearest integer less than or equal to the given number - jsonb_path_query('{"z": -0.3}', '$.z.abs()') - 0.3 + jsonb_path_query('{"h": 1.7}', '$.h.floor()') + 1 -- cgit v1.2.3