pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg
Date: Mon, 22 Dec 2014 18:10:14 -0500
Message-ID: <5498A4D6.8060107@dunslane.net> (raw)
In-Reply-To: <31842.1419276862@sss.pgh.pa.us>
References: <E1Y38Ys-0005ob-6Y@gemulon.postgresql.org>
	<31842.1419276862@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>


On 12/22/2014 02:34 PM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> Fix documentation of argument type of json_agg and jsonb_agg
>> json_agg was originally designed to aggregate records. However, it soon
>> became clear that it is useful for aggregating all kinds of values and
>> that's what we have on 9.3 and 9.4, and in head for it and jsonb_agg.
>> The documentation suggested otherwise, so this fixes it.
> Claiming that the argument type is "expression" is not a fix.  I don't
> mind using that terminology in the first table column, but the second
> column is supposed to be the truth not handwaving.
>
> 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().



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (7+ messages)  latest in thread

Message-ID: <5498A4D6.8060107@dunslane.net>
Permalink:  ../5498A4D6.8060107@dunslane.net/
Also on:    postgresql.org/message-id/5498A4D6.8060107@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg
  In-Reply-To: <5498A4D6.8060107@dunslane.net>
  References: <E1Y38Ys-0005ob-6Y@gemulon.postgresql.org> <31842.1419276862@sss.pgh.pa.us> <5498A4D6.8060107@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox