Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg
Date: 2014-12-22 23:45:41
Message-ID: 4299.1419291941@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> On 12/22/2014 02:34 PM, Tom Lane wrote:
>> The actual declaration of the argument type is "anyelement", and I think
>> we use that to document other such functions.

> Oh, I thought I had seen "expression" there. It looks like we're using
> "any" elsewhere, so I'll use that. While I'm at it I'll remove the quote
> marks around the arguments to json_object_agg().

[ looks around... ] Looks like there are some of each. Don't know how
important consistency is here; I'm satisfied with "any", even though it
doesn't exactly match the catalogs.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message David G Johnston 2014-12-23 02:19:02 Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg
Previous Message Andrew Dunstan 2014-12-22 23:31:45 pgsql: Further tidy up on json aggregate documentation