mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add json_array_elements_text function.
This was a notable omission from the json functions added in 9.3 and there have been numerous complaints about its absence. Laurence Rowe.
This commit is contained in:
@ -10280,6 +10280,27 @@ table2-mapping
|
||||
1
|
||||
true
|
||||
[2,false]
|
||||
</programlisting>
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<indexterm>
|
||||
<primary>json_array_elements_text</primary>
|
||||
</indexterm>
|
||||
<literal>json_array_elements_text(json)</literal>
|
||||
</entry>
|
||||
<entry><type>SETOF json</type></entry>
|
||||
<entry>
|
||||
Expands a JSON array to a set of text values.
|
||||
</entry>
|
||||
<entry><literal>json_array_elements_text('["foo", "bar"]')</literal></entry>
|
||||
<entry>
|
||||
<programlisting>
|
||||
value
|
||||
-----------
|
||||
foo
|
||||
bar
|
||||
</programlisting>
|
||||
</entry>
|
||||
</row>
|
||||
|
Reference in New Issue
Block a user