From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Add json_array_elements_text function. |
Date: | 2014-01-31 13:49:16 |
Message-ID: | 20140131134915.GA1266@depesz.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
On Wed, Jan 29, 2014 at 08:51:26PM +0000, Andrew Dunstan wrote:
> 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.
The docs seem to have bug:
it says that the return value is SETOF json
(http://www.postgresql.org/docs/devel/static/functions-json.html)
While in reality (and based on name) it's setof text:
(depesz(at)[local]:5930) 14:45:43 [depesz]
$ \df json_array_elements_text
List of functions
Schema | Name | Result data type | Argument data types | Type
------------+--------------------------+------------------+--------------------------------+--------
pg_catalog | json_array_elements_text | SETOF text | from_json json, OUT value text | normal
(1 row)
Best regards,
depesz
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2014-01-31 14:40:38 | pgsql: Fix documented return type of json_array_elements_text. |
Previous Message | Tom Lane | 2014-01-31 07:04:04 | pgsql: Allow unrecognized encoding names in locales, as long as they're |