mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Document jsonpath .** accessor with nesting level filter
It appears that some variants of .** jsonpath accessor are undocumented. In particular undocumented variants are: .**{level} .**{lower_level to upper_level} .**{lower_level to last} This commit adds missing documentation for them.
This commit is contained in:
@ -807,6 +807,30 @@ SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @> '{"tags": ["qu
|
|||||||
</para>
|
</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>
|
||||||
|
<para>
|
||||||
|
<literal>.**{<replaceable>level</replaceable>}</literal>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
<literal>.**{<replaceable>lower_level</replaceable> to
|
||||||
|
<replaceable>upper_level</replaceable>}</literal>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
<literal>.**{<replaceable>lower_level</replaceable> to
|
||||||
|
last}</literal>
|
||||||
|
</para>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<para>
|
||||||
|
Same as <literal>.**</literal>, but with filter over nesting
|
||||||
|
level of JSON hierarchy. Levels are specified as integers.
|
||||||
|
Zero level corresponds to current object. This is a
|
||||||
|
<productname>PostgreSQL</productname> extension of the SQL/JSON
|
||||||
|
standard.
|
||||||
|
</para>
|
||||||
|
</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>
|
<entry>
|
||||||
<para>
|
<para>
|
||||||
|
Reference in New Issue
Block a user