Re: new json funcs - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: new json funcs
Date
Msg-id 20140110190115.GT6840@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: new json funcs  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: new json funcs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Andrew Dunstan wrote:
> 
> On 01/10/2014 12:42 PM, Alvaro Herrera wrote:
> >Is it just me, or is the json_array_element(json, int) function not
> >documented?
> 
> As discussed at the time, we didn't document the functions
> underlying the json operators, just the operators themselves.

Oh, I see.  That's fine with me.  From the source code it's hard to see
when a SQL-callable function is only there to implement an operator,
though (and it seems a bit far-fetched to suppose that the developer
will think, upon seeing an undocumented function, "oh this must
implement some operator, I will look it up at pg_proc.h").

I think the operator(s) should be mentioned in the comment on top of the
function.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Standalone synchronous master
Next
From: Alvaro Herrera
Date:
Subject: Re: new json funcs