From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg
Date: Mon, 22 Dec 2014 14:34:22 -0500
Message-ID: <31842.1419276862@sss.pgh.pa.us> (raw)
In-Reply-To: <E1Y38Ys-0005ob-6Y@gemulon.postgresql.org>
References: <E1Y38Ys-0005ob-6Y@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: tgl@sss.pgh.pa.us, andrew@dunslane.net
Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg
In-Reply-To: <31842.1419276862@sss.pgh.pa.us>
References: <E1Y38Ys-0005ob-6Y@gemulon.postgresql.org> <31842.1419276862@sss.pgh.pa.us>
* 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