Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3C7S-0002ci-AU for pgsql-committers@arkaria.postgresql.org; Mon, 22 Dec 2014 23:10:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3C7R-0003Kh-E8 for pgsql-committers@arkaria.postgresql.org; Mon, 22 Dec 2014 23:10:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y3C7P-0003KX-Dj for pgsql-committers@postgresql.org; Mon, 22 Dec 2014 23:10:27 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y3C7L-0003cK-Hi for pgsql-committers@postgresql.org; Mon, 22 Dec 2014 23:10:25 +0000 Received: from mfilter33-d.gandi.net (mfilter33-d.gandi.net [217.70.178.164]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 02636FB87D; Tue, 23 Dec 2014 00:10:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter33-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter33-d.gandi.net (mfilter33-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id N5tB-Jss9Ir9; Tue, 23 Dec 2014 00:10:17 +0100 (CET) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-098-027-058-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 11D5EFB8A0; Tue, 23 Dec 2014 00:10:16 +0100 (CET) Message-ID: <5498A4D6.8060107@dunslane.net> Date: Mon, 22 Dec 2014 18:10:14 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg References: <31842.1419276862@sss.pgh.pa.us> In-Reply-To: <31842.1419276862@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 12/22/2014 02:34 PM, Tom Lane wrote: > Andrew Dunstan 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