Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y38kP-0001Y5-Qq for pgsql-committers@arkaria.postgresql.org; Mon, 22 Dec 2014 19:34:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y38kO-0004Sz-Hs for pgsql-committers@arkaria.postgresql.org; Mon, 22 Dec 2014 19:34:28 +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 1Y38kN-0004Ss-Jm for pgsql-committers@postgresql.org; Mon, 22 Dec 2014 19:34:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y38kK-00083k-Re for pgsql-committers@postgresql.org; Mon, 22 Dec 2014 19:34:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sBMJYM65031843; Mon, 22 Dec 2014 14:34:22 -0500 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix documentation of argument type of json_agg and jsonb_agg In-reply-to: References: Comments: In-reply-to Andrew Dunstan message dated "Mon, 22 Dec 2014 19:22:34 +0000" Date: Mon, 22 Dec 2014 14:34:22 -0500 Message-ID: <31842.1419276862@sss.pgh.pa.us> 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 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. 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