diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-01-03 11:25:33 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-01-03 11:25:33 +0100 |
commit | 283a95da923605c1cc148155db2d865d0801b419 (patch) | |
tree | ba18d24db7e71cab5ab8f6ce0224760e77a42fce /doc/src | |
parent | c1b9e1e56d8c11a00869766a02de537d349586cd (diff) | |
download | postgresql-283a95da923605c1cc148155db2d865d0801b419.tar.gz postgresql-283a95da923605c1cc148155db2d865d0801b419.zip |
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 <jeevan.chalke@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/CAM2+6=XjTyqrrqHAOj80r0wVQxJSxc0iyib9bPC55uFO9VKatg@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 24 |
1 files changed, 12 insertions, 12 deletions
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 <row> <entry role="func_table_entry"><para role="func_signature"> - <replaceable>number</replaceable> <literal>.</literal> <literal>ceiling()</literal> + <replaceable>number</replaceable> <literal>.</literal> <literal>abs()</literal> <returnvalue><replaceable>number</replaceable></returnvalue> </para> <para> - Nearest integer greater than or equal to the given number + Absolute value of the given number </para> <para> - <literal>jsonb_path_query('{"h": 1.3}', '$.h.ceiling()')</literal> - <returnvalue>2</returnvalue> + <literal>jsonb_path_query('{"z": -0.3}', '$.z.abs()')</literal> + <returnvalue>0.3</returnvalue> </para></entry> </row> <row> <entry role="func_table_entry"><para role="func_signature"> - <replaceable>number</replaceable> <literal>.</literal> <literal>floor()</literal> + <replaceable>number</replaceable> <literal>.</literal> <literal>ceiling()</literal> <returnvalue><replaceable>number</replaceable></returnvalue> </para> <para> - Nearest integer less than or equal to the given number + Nearest integer greater than or equal to the given number </para> <para> - <literal>jsonb_path_query('{"h": 1.7}', '$.h.floor()')</literal> - <returnvalue>1</returnvalue> + <literal>jsonb_path_query('{"h": 1.3}', '$.h.ceiling()')</literal> + <returnvalue>2</returnvalue> </para></entry> </row> <row> <entry role="func_table_entry"><para role="func_signature"> - <replaceable>number</replaceable> <literal>.</literal> <literal>abs()</literal> + <replaceable>number</replaceable> <literal>.</literal> <literal>floor()</literal> <returnvalue><replaceable>number</replaceable></returnvalue> </para> <para> - Absolute value of the given number + Nearest integer less than or equal to the given number </para> <para> - <literal>jsonb_path_query('{"z": -0.3}', '$.z.abs()')</literal> - <returnvalue>0.3</returnvalue> + <literal>jsonb_path_query('{"h": 1.7}', '$.h.floor()')</literal> + <returnvalue>1</returnvalue> </para></entry> </row> |